API Differences between 4.3.2 and 4.6.0
7 Additions
164 Removals
NUnit.Framework
-
public abstract class Assert : AssertBase
- public static TExpected Catch<TExpected>(TestDelegate code, string message, object[] args) where TExpected : Exception
- public static TExpected Catch<TExpected>(TestDelegate code) where TExpected : Exception
- public static Exception Catch(Action code, string message, object[] args)
- public static Exception Catch(Action code)
- public static Exception Catch(Type expectedExceptionType, Action code, string message, object[] args)
- public static Exception Catch(Type expectedExceptionType, Action code)
- public static TExpected Catch<TExpected>(Action code, string message, object[] args) where TExpected : Exception
- public static TExpected Catch<TExpected>(Action code) where TExpected : Exception
- 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(Func<Task> asyncCode, string message, object[] args)
- public static Exception CatchAsync(Func<Task> asyncCode)
- public static Exception CatchAsync(Type expectedExceptionType, Func<Task> asyncCode, string message, object[] args)
- public static Exception CatchAsync(Type expectedExceptionType, Func<Task> asyncCode)
- public static TActual CatchAsync<TActual>(Func<Task> asyncCode, string message, object[] args) where TActual : Exception
- public static TActual CatchAsync<TActual>(Func<Task> asyncCode) where TActual : Exception
- public static void DoesNotThrow(Action code, string message, object[] args)
- public static void DoesNotThrow(Action code)
- public static void DoesNotThrowAsync(Func<Task> asyncCode, string message, object[] args)
- public static void DoesNotThrowAsync(Func<Task> asyncCode)
- public static void Multiple(Action action)
- public static void Multiple(Func<Task> asyncAction)
- public static Task MultipleAsync(Func<Task> asyncAction)
- public static void That<TActual>(Func<TActual> code, IResolveConstraint expr, NUnitString message = default, string actualExpression = "", string constraintExpression = "")
- public static void That<TActual>(Func<TActual> code, IResolveConstraint expr, FormattableString message, string actualExpression = "", string constraintExpression = "")
- public static void That<TActual>(Func<TActual> code, IResolveConstraint expr, Func<string> getExceptionMessage, string actualExpression = "", string constraintExpression = "")
- public static void That(Action code, IResolveConstraint constraint, NUnitString message = default, string actualExpression = "", string constraintExpression = "")
- public static void That(Action code, IResolveConstraint constraint, FormattableString message, string actualExpression = "", string constraintExpression = "")
- public static void That(Action code, IResolveConstraint constraint, Func<string> getExceptionMessage, string actualExpression = "", string constraintExpression = "")
- public static Task ThatAsync(Func<Task> asyncCode, IResolveConstraint constraint, NUnitString message = default, string actualExpression = "", string constraintExpression = "")
- public static Task ThatAsync(Func<Task> asyncCode, IResolveConstraint constraint, FormattableString message, string actualExpression = "", string constraintExpression = "")
- public static TExpected Throws<TExpected>(TestDelegate code, string message, object[] args) where TExpected : Exception
- public static TExpected Throws<TExpected>(TestDelegate code) where TExpected : Exception
- public static Exception Throws(IResolveConstraint expression, Action code, string message, object[] args)
- public static Exception Throws(IResolveConstraint expression, Action code)
- public static Exception Throws(Type expectedExceptionType, Action code, string message, object[] args)
- public static Exception Throws(Type expectedExceptionType, Action code)
- public static TExpected Throws<TExpected>(Action code, string message, object[] args) where TExpected : Exception
- public static TExpected Throws<TExpected>(Action code) where TExpected : Exception
- 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, Func<Task> asyncCode, string message, object[] args)
- public static Exception ThrowsAsync(IResolveConstraint expression, Func<Task> asyncCode)
- public static Exception ThrowsAsync(Type expectedExceptionType, Func<Task> asyncCode, string message, object[] args)
- public static Exception ThrowsAsync(Type expectedExceptionType, Func<Task> asyncCode)
- public static TActual ThrowsAsync<TActual>(Func<Task> asyncCode, string message, object[] args) where TActual : Exception
- public static TActual ThrowsAsync<TActual>(Func<Task> asyncCode) where TActual : Exception
-
public abstract class Assume
- public static void That<TActual>(Func<TActual> code, IResolveConstraint expr, NUnitString message = default, string actualExpression = "", string constraintExpression = "")
- public static void That<TActual>(Func<TActual> code, IResolveConstraint expr, FormattableString message, string actualExpression = "", string constraintExpression = "")
- public static void That<TActual>(Func<TActual> code, IResolveConstraint expr, Func<string> getExceptionMessage, string actualExpression = "", string constraintExpression = "")
-
public abstract class Contains
- public static SomeItemsConstraint<T> Item<T>(T expected)
-
public abstract class Does
- public static SomeItemsConstraint<T> Contain<T>(T expected)
-
public abstract class ExecutionHookAttribute : ExecutionHookMethodsAttribute, IWrapTestMethod, ICommandWrapper, IApplyToContext
-
public abstract class ExecutionHookMethodsAttribute : NUnitAttribute
-
public abstract class Has
- public static SomeItemsConstraint<T> Member<T>(T expected)
-
public interface IEqualWithUsingConstraint<T>
-
public abstract class IncludeExcludeAttribute : NUnitAttribute
-
public abstract class Is
- public static MultipleOfConstraint Even { get; }
- public static MultipleOfConstraint Odd { get; }
- public static EqualConstraint<T> EqualTo<T>(T[] expected)
- public static MultipleOfConstraint MultipleOf(int multiple)
- public static SameAsConstraint<T> SameAs<T>(T expected)
-
public class NoTestsAttribute : PropertyAttribute, IApplyToTest
-
public class PlatformAttribute : IncludeExcludeAttribute, IApplyToTest
-
public static class PlatformNames
-
public class RetryAttribute : NUnitAttribute, IRepeatTest, ICommandWrapper
-
public class TestCaseData : TestCaseParameters
-
public class TestCaseData<T> : TestCaseData
-
public class TestCaseData<T1, T2> : TestCaseData
-
public class TestCaseData<T1, T2, T3> : TestCaseData
-
public class TestCaseData<T1, T2, T3, T4> : TestCaseData
-
public class TestCaseData<T1, T2, T3, T4, T5> : TestCaseData
-
public class TestContext
-
public class TestFixtureData : TestFixtureParameters
-
public class TestFixtureSourceAttribute : NUnitAttribute, IFixtureBuilder2, IFixtureBuilder
-
public enum UnhandledExceptionHandling
-
public sealed class UnhandledExceptionHandlingAttribute : PropertyAttribute
-
public abstract class Warn
- public static void If<TActual>(Func<TActual> code, IResolveConstraint expr, NUnitString message = default, string actualExpression = "", string constraintExpression = "")
- public static void If<TActual>(Func<TActual> code, IResolveConstraint expr, FormattableString message, string actualExpression = "", string constraintExpression = "")
- public static void If<TActual>(Func<TActual> code, IResolveConstraint expr, Func<string> getExceptionMessage, string actualExpression = "", string constraintExpression = "")
- public static void Unless<TActual>(Func<TActual> code, IResolveConstraint expr, NUnitString message = default, string actualExpression = "", string constraintExpression = "")
- public static void Unless<TActual>(Func<TActual> code, IResolveConstraint expr, FormattableString message, string actualExpression = "", string constraintExpression = "")
- public static void Unless<TActual>(Func<TActual> code, IResolveConstraint expr, Func<string> getExceptionMessage, string actualExpression = "", string constraintExpression = "")
-
public static class ClassicAssertExtensions
NUnit.Framework.Constraints
NUnit.Framework.Interfaces
NUnit.Framework.Internal
NUnit.Framework.Internal.ExecutionHooks
NUnit.Framework.Legacy