C# Class NBench.Sdk.Assertion

Executes an assertion against a given metric
Mostra file Open project: petabridge/NBench Class Usage Examples

Public Properties

Property Type Description
Empty Assertion

Public Methods

Method Description
Assertion ( MustBe condition, double value, double maxValue ) : System.Diagnostics.Contracts
Equals ( object obj ) : bool
GetHashCode ( ) : int
MustBeToString ( MustBe condition ) : string
Test ( double testValue ) : bool
ToString ( ) : string
operator ( ) : bool

Private Methods

Method Description
Equals ( Assertion other ) : bool

Method Details

Assertion() public method

public Assertion ( MustBe condition, double value, double maxValue ) : System.Diagnostics.Contracts
condition MustBe
value double
maxValue double
return System.Diagnostics.Contracts

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

MustBeToString() public static method

public static MustBeToString ( MustBe condition ) : string
condition MustBe
return string

Test() public method

public Test ( double testValue ) : bool
testValue double
return bool

ToString() public method

public ToString ( ) : string
return string

operator() public static method

public static operator ( ) : bool
return bool

Property Details

Empty public_oe static_oe property

Empty assertion - used when in TestMode.Measurement.
public static Assertion,NBench.Sdk Empty
return Assertion