Search Results for

    Show / Hide Table of Contents

    Class Interval

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

    Inheritance
    object
    Interval
    Inherited Members
    object.GetType()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: NUnit.Framework.Constraints
    Assembly: nunit.framework.dll
    Syntax
    public sealed class Interval

    Constructors

    View Source

    Interval(int)

    Constructs a interval given an value in milliseconds

    Declaration
    public Interval(int value)
    Parameters
    Type Name Description
    int value

    Properties

    View Source

    AsTimeSpan

    Gets Interval value represented as a TimeSpan object

    Declaration
    public TimeSpan AsTimeSpan { get; }
    Property Value
    Type Description
    TimeSpan
    View Source

    InMilliseconds

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

    Declaration
    public Interval InMilliseconds { get; }
    Property Value
    Type Description
    Interval
    View Source

    InMinutes

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

    Declaration
    public Interval InMinutes { get; }
    Property Value
    Type Description
    Interval
    View Source

    InSeconds

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

    Declaration
    public Interval InSeconds { get; }
    Property Value
    Type Description
    Interval
    View Source

    IsNotZero

    Is true for intervals created with a non-zero value

    Declaration
    public bool IsNotZero { get; }
    Property Value
    Type Description
    bool

    Methods

    View Source

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    object.ToString()
    • View Source
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0