Click or drag to resize

SmartTestCase Method (Criteria)

Creates an instance of Case class for a global Criteria (not specific to a parameter).

Namespace:  SmartTests
Assembly:  SmartTests (in SmartTests.dll) Version: 1.9.0
Syntax
public static Case Case(
	Criteria criteria
)

Parameters

criteria
Type: SmartTestsCriteria
The Criteria expression for the created Case.

Return Value

Type: Case
The newly created Case.
Examples
[Test]
public void TestMethod()
{
    var result = RunTest( Case( MinIncluded.IsAboveMin ),
                          () => Math.Sqrt( 4 ) );
    Assert.That( result, Is.EqualTo( 2 ) );
}
See Also