C# Class NFluent.Tests.ForDocumentation.RunnerHelper

Hosts several methods helping to execute unit tests in a controlled fashion.
Show file Open project: tpierrain/NFluent Class Usage Examples

Public Methods

Method Description
Log ( string message ) : void
RunAction ( System.Action action ) : void
RunAllTests ( bool log ) : void

Runs all tests found in current assembly.

RunThoseTests ( IEnumerable tests, Type type, FullRunDescription report, bool log ) : void

Private Methods

Method Description
GetCheckAndType ( FluentCheckException fluExc ) : CheckDescription
RunAllMethodsWithASpecificAttribute ( Type type, Type attributeTypeToScan, object test ) : void
RunMethod ( MethodBase specificTest, object test, FullRunDescription report, bool log ) : void

Method Details

Log() public static method

public static Log ( string message ) : void
message string
return void

RunAction() public static method

public static RunAction ( System.Action action ) : void
action System.Action
return void

RunAllTests() public static method

Runs all tests found in current assembly.
public static RunAllTests ( bool log ) : void
log bool if set to true log the activity (to Debug output).
return void

RunThoseTests() public static method

public static RunThoseTests ( IEnumerable tests, Type type, FullRunDescription report, bool log ) : void
tests IEnumerable
type System.Type
report FullRunDescription
log bool
return void