<PackageReference Include="NUnit" Version="4.3.0" />

NUnit.Framework.Assert

public abstract class Assert : AssertBase
protected Assert()

public static void ByVal(object actual, IResolveConstraint expression, string message = "", string actualExpression = "", string constraintExpression = "")

public static Exception Catch(TestDelegate code, string message, object[] args)

public static Exception Catch(TestDelegate code)

public static Exception Catch(Type expectedExceptionType, TestDelegate code, string message, object[] args)

public static Exception Catch(Type expectedExceptionType, TestDelegate code)

public static TActual Catch<TActual>(TestDelegate code, string message, object[] args) where TActual : Exception

public static TActual Catch<TActual>(TestDelegate code) where TActual : Exception

public static Exception CatchAsync(AsyncTestDelegate code, string message, object[] args)

public static Exception CatchAsync(Type expectedExceptionType, AsyncTestDelegate code, string message, object[] args)

public static Exception CatchAsync(Type expectedExceptionType, AsyncTestDelegate code)

public static TActual CatchAsync<TActual>(AsyncTestDelegate code, string message, object[] args) where TActual : Exception

public static TActual CatchAsync<TActual>(AsyncTestDelegate code) where TActual : Exception

public static void Charlie()

public static void DoesNotThrow(TestDelegate code, string message, object[] args)

public static void DoesNotThrow(TestDelegate code)

public static void DoesNotThrowAsync(AsyncTestDelegate code, string message, object[] args)

public static void DoesNotThrowAsync(AsyncTestDelegate code)

public static bool Equals(object a, object b)

public static void Fail(string message)

public static void Fail()

public static void Ignore(string message)

public static void Ignore()

public static void Inconclusive(string message)

public static void Inconclusive()

public static void Multiple(TestDelegate testDelegate)

public static void Multiple(AsyncTestDelegate testDelegate)

public static Task MultipleAsync(AsyncTestDelegate testDelegate)

public static void Pass(string message)

public static void Pass()

public static void ReferenceEquals(object a, object b)

public static void That(bool condition, NUnitString message = default, string actualExpression = "")

public static void That(bool condition, FormattableString message, string actualExpression = "")

public static void That(bool condition, Func<string> getExceptionMessage, string actualExpression = "")

public static void That(Func<bool> condition, NUnitString message = default, string actualExpression = "")

public static void That(Func<bool> condition, FormattableString message, string actualExpression = "")

public static void That(Func<bool> condition, Func<string> getExceptionMessage, string actualExpression = "")

public static void That<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, NUnitString message = default, string actualExpression = "", string constraintExpression = "")

public static void That<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, FormattableString message, string actualExpression = "", string constraintExpression = "")

public static void That<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, Func<string> getExceptionMessage, string actualExpression = "", string constraintExpression = "")

public static void That(TestDelegate code, IResolveConstraint constraint, NUnitString message = default, string actualExpression = "", string constraintExpression = "")

public static void That(TestDelegate code, IResolveConstraint constraint, FormattableString message, string actualExpression = "", string constraintExpression = "")

public static void That(TestDelegate code, IResolveConstraint constraint, Func<string> getExceptionMessage, string actualExpression = "", string constraintExpression = "")

public static void That<TActual>(TActual actual, IResolveConstraint expression, NUnitString message = default, string actualExpression = "", string constraintExpression = "")

public static void That<TActual>(TActual actual, IResolveConstraint expression, FormattableString message, string actualExpression = "", string constraintExpression = "")

public static void That<TActual>(TActual actual, IResolveConstraint expression, Func<string> getExceptionMessage, string actualExpression = "", string constraintExpression = "")

public static Task ThatAsync(AsyncTestDelegate code, IResolveConstraint constraint, NUnitString message = default, string actualExpression = "", string constraintExpression = "")

public static Task ThatAsync(AsyncTestDelegate code, IResolveConstraint constraint, FormattableString message, string actualExpression = "", string constraintExpression = "")

public static Task ThatAsync<T>(Func<Task<T>> code, IResolveConstraint constraint, NUnitString message = default, string actualExpression = "", string constraintExpression = "")

public static Task ThatAsync<T>(Func<Task<T>> code, IResolveConstraint constraint, FormattableString message, string actualExpression = "", string constraintExpression = "")

public static Exception Throws(IResolveConstraint expression, TestDelegate code, string message, object[] args)

public static Exception Throws(IResolveConstraint expression, TestDelegate code)

public static Exception Throws(Type expectedExceptionType, TestDelegate code, string message, object[] args)

public static Exception Throws(Type expectedExceptionType, TestDelegate code)

public static TActual Throws<TActual>(TestDelegate code, string message, object[] args) where TActual : Exception

public static TActual Throws<TActual>(TestDelegate code) where TActual : Exception

public static Exception ThrowsAsync(IResolveConstraint expression, AsyncTestDelegate code, string message, object[] args)

public static Exception ThrowsAsync(Type expectedExceptionType, AsyncTestDelegate code, string message, object[] args)

public static Exception ThrowsAsync(Type expectedExceptionType, AsyncTestDelegate code)

public static TActual ThrowsAsync<TActual>(AsyncTestDelegate code, string message, object[] args) where TActual : Exception

public static TActual ThrowsAsync<TActual>(AsyncTestDelegate code) where TActual : Exception

public static void Warn(string message)