C# Class NFluent.TimeSpanCheckExtensions

Provides check methods to be executed on an TimeSpan instance.
Show file Open project: tpierrain/NFluent

Public Methods

Method Description
IsEqualTo ( this check, System.TimeSpan comparand ) : ICheckLink>

Checks that the actual duration is equal to a target duration.

IsEqualTo ( this check, double duration, TimeUnit unit ) : ICheckLink>

Checks that the actual duration is equal to a target duration.

IsGreaterThan ( this check, System.TimeSpan comparand ) : ICheckLink>

Checks that the actual duration is greater (strictly) than a comparand.

IsGreaterThan ( this check, double providedDuration, TimeUnit unit ) : ICheckLink>

Checks that the actual duration is greater (strictly) than a comparand.

IsLessThan ( this check, System.TimeSpan comparand ) : ICheckLink>

Checks that the actual duration is less (strictly) than a comparand.

IsLessThan ( this check, double providedDuration, TimeUnit unit ) : ICheckLink>

Checks that the actual duration is less (strictly) than a comparand.

Method Details

IsEqualTo() public static method

Checks that the actual duration is equal to a target duration.
The actual value is not equal to the target duration.
public static IsEqualTo ( this check, System.TimeSpan comparand ) : ICheckLink>
check this The fluent check to be extended.
comparand System.TimeSpan The duration to be compared to.
return ICheckLink>

IsEqualTo() public static method

Checks that the actual duration is equal to a target duration.
The actual value is not equal to the target duration.
public static IsEqualTo ( this check, double duration, TimeUnit unit ) : ICheckLink>
check this The fluent check to be extended.
duration double The duration to be compared to.
unit TimeUnit The in which duration is expressed.
return ICheckLink>

IsGreaterThan() public static method

Checks that the actual duration is greater (strictly) than a comparand.
The actual value is not greater than the provided comparand.
public static IsGreaterThan ( this check, System.TimeSpan comparand ) : ICheckLink>
check this The fluent check to be extended.
comparand System.TimeSpan The value to compare to.
return ICheckLink>

IsGreaterThan() public static method

Checks that the actual duration is greater (strictly) than a comparand.
The actual value is not greater than the provided comparand.
public static IsGreaterThan ( this check, double providedDuration, TimeUnit unit ) : ICheckLink>
check this The fluent check to be extended.
providedDuration double The duration to compare to.
unit TimeUnit The unit in which the duration is expressed.
return ICheckLink>

IsLessThan() public static method

Checks that the actual duration is less (strictly) than a comparand.
The actual value is not less than the provided comparand.
public static IsLessThan ( this check, System.TimeSpan comparand ) : ICheckLink>
check this The fluent check to be extended.
comparand System.TimeSpan The value to compare to.
return ICheckLink>

IsLessThan() public static method

Checks that the actual duration is less (strictly) than a comparand.
The actual value is not less than the provided duration.
public static IsLessThan ( this check, double providedDuration, TimeUnit unit ) : ICheckLink>
check this The fluent check to be extended.
providedDuration double The duration to compare to.
unit TimeUnit The unit in which the duration is expressed.
return ICheckLink>