C# Class NUnit.Gui.Presenters.DisplayStrategy

DisplayStrategy is the abstract base for the various strategies used to display tests in the tree control. It works primarily as a traditional strategy, with methods called by the TreeViewPresenter, but may also function as a presenter in it's own right, since it is created with references to the view and mode. We currently support three different strategies: NunitTreeDisplay, TestListDisplay and FixtureListDisplay.
Afficher le fichier Open project: nunit/nunit-gui Class Usage Examples

Protected Properties

Свойство Type Description
_model ITestModel
_nodeIndex List>.Dictionary
_view ITestTreeView

Méthodes publiques

Méthode Description
CalcImageIndex ( ResultState outcome ) : int
CollapseToFixtures ( ) : void
DisplayStrategy ( ITestTreeView view, ITestModel model ) : System
GetResultForTest ( TestNode testNode ) : ResultNode
GetTreeNodesForTest ( TestNode testNode ) : List
GroupDisplayName ( NUnit.Gui.Presenters.TestGroup group ) : string
MakeTreeNode ( TestNode testNode, bool recursive ) : TreeNode
OnTestFinished ( ResultNode result ) : void
OnTestLoaded ( TestNode testNode ) : void

Load all tests into the tree, starting from a root TestNode.

OnTestUnloaded ( ) : void
Reload ( ) : void

Méthodes protégées

Méthode Description
ClearTree ( ) : void
CollapseToFixtures ( TreeNode treeNode ) : void
MakeTreeNode ( NUnit.Gui.Presenters.TestGroup group, bool recursive ) : TreeNode

Private Methods

Méthode Description
ApplyResultsToTree ( TreeNode treeNode ) : void

Method Details

CalcImageIndex() public static méthode

public static CalcImageIndex ( ResultState outcome ) : int
outcome ResultState
Résultat int

ClearTree() protected méthode

protected ClearTree ( ) : void
Résultat void

CollapseToFixtures() public méthode

public CollapseToFixtures ( ) : void
Résultat void

CollapseToFixtures() protected méthode

protected CollapseToFixtures ( TreeNode treeNode ) : void
treeNode System.Windows.Forms.TreeNode
Résultat void

DisplayStrategy() public méthode

public DisplayStrategy ( ITestTreeView view, ITestModel model ) : System
view ITestTreeView
model ITestModel
Résultat System

GetResultForTest() public méthode

public GetResultForTest ( TestNode testNode ) : ResultNode
testNode TestNode
Résultat ResultNode

GetTreeNodesForTest() public méthode

public GetTreeNodesForTest ( TestNode testNode ) : List
testNode TestNode
Résultat List

GroupDisplayName() public méthode

public GroupDisplayName ( NUnit.Gui.Presenters.TestGroup group ) : string
group NUnit.Gui.Presenters.TestGroup
Résultat string

MakeTreeNode() protected méthode

protected MakeTreeNode ( NUnit.Gui.Presenters.TestGroup group, bool recursive ) : TreeNode
group NUnit.Gui.Presenters.TestGroup
recursive bool
Résultat System.Windows.Forms.TreeNode

MakeTreeNode() public méthode

public MakeTreeNode ( TestNode testNode, bool recursive ) : TreeNode
testNode TestNode
recursive bool
Résultat System.Windows.Forms.TreeNode

OnTestFinished() public méthode

public OnTestFinished ( ResultNode result ) : void
result ResultNode
Résultat void

OnTestLoaded() public abstract méthode

Load all tests into the tree, starting from a root TestNode.
public abstract OnTestLoaded ( TestNode testNode ) : void
testNode TestNode
Résultat void

OnTestUnloaded() public méthode

public OnTestUnloaded ( ) : void
Résultat void

Reload() public méthode

public Reload ( ) : void
Résultat void

Property Details

_model protected_oe property

protected ITestModel _model
Résultat ITestModel

_nodeIndex protected_oe property

protected Dictionary> _nodeIndex
Résultat List>.Dictionary

_view protected_oe property

protected ITestTreeView _view
Résultat ITestTreeView