Search Results for

    Show / Hide Table of Contents

    Class SameAsConstraint<T>

    SameAsConstraint tests whether an object is identical to the object passed to its constructor

    Inheritance
    object
    Constraint
    SameAsConstraint
    SameAsConstraint<T>
    Implements
    IConstraint
    IResolveConstraint
    Inherited Members
    SameAsConstraint.ApplyTo<TActual>(TActual)
    SameAsConstraint.Description
    Constraint.ApplyTo<TActual>(ActualValueDelegate<TActual>)
    Constraint.ApplyTo<TActual>(Func<TActual>)
    Constraint.ApplyToAsync<TActual>(Func<Task<TActual>>)
    Constraint.GetTestObject<TActual>(ActualValueDelegate<TActual>)
    Constraint.GetTestObject<TActual>(Func<TActual>)
    Constraint.ToString()
    Constraint.GetStringRepresentation(IEnumerable)
    Constraint.GetStringRepresentation()
    Constraint.After(int)
    Constraint.After(int, int)
    Constraint.DisplayName
    Constraint.Arguments
    Constraint.Builder
    Constraint.And
    Constraint.With
    Constraint.Or
    object.GetType()
    object.MemberwiseClone()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: NUnit.Framework.Constraints
    Assembly: nunit.framework.dll
    Syntax
    public class SameAsConstraint<T> : SameAsConstraint, IConstraint, IResolveConstraint where T : class?
    Type Parameters
    Name Description
    T

    Constructors

    View Source

    SameAsConstraint(T?)

    SameAsConstraint tests whether an object is identical to the object passed to its constructor

    Declaration
    public SameAsConstraint(T? expected)
    Parameters
    Type Name Description
    T expected

    Implements

    IConstraint
    IResolveConstraint
    • 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