Class Assertion
Executes an assertion against a given metric
Inheritance
System.Object
Assertion
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: NBench.dll
Syntax
Constructors
Assertion(MustBe, Double, Nullable<Double>)
Declaration
public Assertion(MustBe condition, double value, double? maxValue)
Parameters
Type |
Name |
Description |
MustBe |
condition |
|
System.Double |
value |
|
System.Nullable<System.Double> |
maxValue |
|
Fields
Empty
Declaration
public static readonly Assertion Empty
Field Value
Properties
Condition
The condition we're using to test against Value
and possibly MaxValue.
Declaration
public MustBe Condition { get; }
Property Value
MaxValue
Optional value used in Between comparisons.
Declaration
public double? MaxValue { get; }
Property Value
Type |
Description |
System.Nullable<System.Double> |
|
Value
The expected value we'll be testing against during Test(Double).
Declaration
public double Value { get; }
Property Value
Type |
Description |
System.Double |
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
MustBeToString(MustBe)
Declaration
public static string MustBeToString(MustBe condition)
Parameters
Type |
Name |
Description |
MustBe |
condition |
|
Returns
Type |
Description |
System.String |
|
Test(Double)
Declaration
public bool Test(double testValue)
Parameters
Type |
Name |
Description |
System.Double |
testValue |
|
Returns
Type |
Description |
System.Boolean |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Operators
Equality(Assertion, Assertion)
Declaration
public static bool operator ==(Assertion left, Assertion right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(Assertion, Assertion)
Declaration
public static bool operator !=(Assertion left, Assertion right)
Parameters
Returns
Type |
Description |
System.Boolean |
|