C# Class NUnit.Framework.Internal.Filters.MockTestFilter

Inheritance: TestFilter
Datei anzeigen Open project: nunit/nunit Class Usage Examples

Public Methods

Method Description
AddToXml ( TNode parentNode, bool recursive ) : TNode
IsExplicitMatch ( ITest test ) : bool
Match ( ITest test ) : bool
MockTestFilter ( ITest expectedTest, MatchFunction expectedMatchFunction, bool matchFunctionResult ) : System

Construct an MockTestFilter.

Pass ( ITest test ) : bool

Private Methods

Method Description
AssertAndGetEquality ( ITest test, MatchFunction calledFunction ) : bool

Method Details

AddToXml() public method

public AddToXml ( TNode parentNode, bool recursive ) : TNode
parentNode TNode
recursive bool
return TNode

IsExplicitMatch() public method

public IsExplicitMatch ( ITest test ) : bool
test ITest
return bool

Match() public method

public Match ( ITest test ) : bool
test ITest
return bool

MockTestFilter() public method

Construct an MockTestFilter.
public MockTestFilter ( ITest expectedTest, MatchFunction expectedMatchFunction, bool matchFunctionResult ) : System
expectedTest ITest The test for which calling the match-function is allowed.
expectedMatchFunction MatchFunction The matching function that should be called.
matchFunctionResult bool The result of the match function for the expected /// test.
return System

Pass() public method

public Pass ( ITest test ) : bool
test ITest
return bool