| 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.12.0
Syntax public static Case Case(
Criteria criteria
)
Public Shared Function Case (
criteria As Criteria
) As Case
public:
static Case^ Case(
Criteria^ criteria
)
static member Case :
criteria : Criteria -> Case
Parameters
- criteria
- Type: SmartTestsCriteria
The Criteria expression for the created Case.
Return Value
Type:
CaseThe 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