Table of Contents

Class Interval

Namespace
NUnit.Framework.Constraints
Assembly
nunit.framework.dll

Keeps track of an interval time which can be represented in Minutes, Seconds or Milliseconds

public sealed class Interval
Inheritance
Interval
Inherited Members

Constructors

Interval(int)

Constructs a interval given an value in milliseconds

public Interval(int value)

Parameters

value int

Properties

AsTimeSpan

Gets Interval value represented as a TimeSpan object

public TimeSpan AsTimeSpan { get; }

Property Value

TimeSpan

InMilliseconds

Returns the interval with the current value as a number of milliseconds.

public Interval InMilliseconds { get; }

Property Value

Interval

InMinutes

Returns the interval with the current value as a number of minutes.

public Interval InMinutes { get; }

Property Value

Interval

InSeconds

Returns the interval with the current value as a number of seconds.

public Interval InSeconds { get; }

Property Value

Interval

IsNotZero

Is true for intervals created with a non-zero value

public bool IsNotZero { get; }

Property Value

bool

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.