GuardConstraint

StockSharp.Xaml.Charting.Utility

Allows assertions to be built with the following syntax: Guard.Assert(123).IsLessThan(456);

Konstruktoren

GuardConstraint(IComparable, string)

Initializes a new instance of the GuardConstraint class.

value
The value.
argName
Name of the arg.

Methoden

IsEqualTo(IComparable, string)

Asserts that the current value is equal to the specified other value

other
The other value.
otherArgName
Name of the other arg.
IsGreaterThan(IComparable)

Asserts that the current value is greater to the specified other value

other
The other value.
IsGreaterThanOrEqualTo(IComparable)

Asserts that the current value is greater than or equal to the specified other value

other
The other value.
IsLessThan(IComparable, string)

Asserts that the current value is less than the specified other value

other
The other value.
otherArgName
Name of the other arg.
IsLessThanOrEqualTo(IComparable, string)

Asserts that the current value is less than or equal to the specified other value

other
The other value.
otherArgName
Name of the other arg.
IsNotEqualTo(IComparable, string)

Asserts that the current value is not equal to the specified other value

other
The other value.
otherArgName
Name of the other arg.
IsNotEqualTo(IComparable)

Asserts that the current value is not equal to the specified other value

other
The other value.