Class Interval
Keeps track of an interval time which can be represented in Minutes, Seconds or Milliseconds
Inherited Members
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public sealed class Interval
Constructors
View SourceInterval(int)
Constructs a interval given an value in milliseconds
Declaration
public Interval(int value)
Parameters
Type | Name | Description |
---|---|---|
int | value |
Properties
View SourceAsTimeSpan
Gets Interval value represented as a TimeSpan object
Declaration
public TimeSpan AsTimeSpan { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
InMilliseconds
Returns the interval with the current value as a number of milliseconds.
Declaration
public Interval InMilliseconds { get; }
Property Value
Type | Description |
---|---|
Interval |
InMinutes
Returns the interval with the current value as a number of minutes.
Declaration
public Interval InMinutes { get; }
Property Value
Type | Description |
---|---|
Interval |
InSeconds
Returns the interval with the current value as a number of seconds.
Declaration
public Interval InSeconds { get; }
Property Value
Type | Description |
---|---|
Interval |
IsNotZero
Is true for intervals created with a non-zero value
Declaration
public bool IsNotZero { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |