C# 클래스 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.
파일 보기 프로젝트 열기: nunit/nunit-gui 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_model ITestModel
_nodeIndex List>.Dictionary
_view ITestTreeView

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
ClearTree ( ) : void
CollapseToFixtures ( TreeNode treeNode ) : void
MakeTreeNode ( NUnit.Gui.Presenters.TestGroup group, bool recursive ) : TreeNode

비공개 메소드들

메소드 설명
ApplyResultsToTree ( TreeNode treeNode ) : void

메소드 상세

CalcImageIndex() 공개 정적인 메소드

public static CalcImageIndex ( ResultState outcome ) : int
outcome ResultState
리턴 int

ClearTree() 보호된 메소드

protected ClearTree ( ) : void
리턴 void

CollapseToFixtures() 공개 메소드

public CollapseToFixtures ( ) : void
리턴 void

CollapseToFixtures() 보호된 메소드

protected CollapseToFixtures ( TreeNode treeNode ) : void
treeNode System.Windows.Forms.TreeNode
리턴 void

DisplayStrategy() 공개 메소드

public DisplayStrategy ( ITestTreeView view, ITestModel model ) : System
view ITestTreeView
model ITestModel
리턴 System

GetResultForTest() 공개 메소드

public GetResultForTest ( TestNode testNode ) : ResultNode
testNode TestNode
리턴 ResultNode

GetTreeNodesForTest() 공개 메소드

public GetTreeNodesForTest ( TestNode testNode ) : List
testNode TestNode
리턴 List

GroupDisplayName() 공개 메소드

public GroupDisplayName ( NUnit.Gui.Presenters.TestGroup group ) : string
group NUnit.Gui.Presenters.TestGroup
리턴 string

MakeTreeNode() 보호된 메소드

protected MakeTreeNode ( NUnit.Gui.Presenters.TestGroup group, bool recursive ) : TreeNode
group NUnit.Gui.Presenters.TestGroup
recursive bool
리턴 System.Windows.Forms.TreeNode

MakeTreeNode() 공개 메소드

public MakeTreeNode ( TestNode testNode, bool recursive ) : TreeNode
testNode TestNode
recursive bool
리턴 System.Windows.Forms.TreeNode

OnTestFinished() 공개 메소드

public OnTestFinished ( ResultNode result ) : void
result ResultNode
리턴 void

OnTestLoaded() 공개 추상적인 메소드

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

OnTestUnloaded() 공개 메소드

public OnTestUnloaded ( ) : void
리턴 void

Reload() 공개 메소드

public Reload ( ) : void
리턴 void

프로퍼티 상세

_model 보호되어 있는 프로퍼티

protected ITestModel _model
리턴 ITestModel

_nodeIndex 보호되어 있는 프로퍼티

protected Dictionary> _nodeIndex
리턴 List>.Dictionary

_view 보호되어 있는 프로퍼티

protected ITestTreeView _view
리턴 ITestTreeView