API Differences between 4.5.1 and 5.0.0-beta.1
215 Additions
116 Removals
NUnit.Framework
-
public abstract class Assert : AssertBase
- 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 Task<Exception> CatchAsync(Func<Task> asyncCode, string message, object[] args)
- public static Task<Exception> CatchAsync(Func<Task> asyncCode)
- public static Task<Exception> CatchAsync(Type expectedExceptionType, Func<Task> asyncCode, string message, object[] args)
- public static Task<Exception> CatchAsync(Type expectedExceptionType, Func<Task> asyncCode)
- public static Task<TActual> CatchAsync<TActual>(Func<Task> asyncCode, string message, object[] args) where TActual : Exception
- public static Task<TActual> CatchAsync<TActual>(Func<Task> asyncCode) where TActual : Exception
- 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(AsyncTestDelegate code)
- 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 DoesNotThrow(Action code, string message, object[] args)
- public static void DoesNotThrow(Action code)
- public static Task DoesNotThrowAsync(Func<Task> asyncCode, string message, object[] args)
- public static Task DoesNotThrowAsync(Func<Task> asyncCode)
- 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 void Multiple(Action action)
- public static void Multiple(Func<Task> asyncAction)
- public static Task MultipleAsync(Func<Task> asyncAction)
- public static void Multiple(TestDelegate testDelegate)
- public static void Multiple(AsyncTestDelegate testDelegate)
- public static Task MultipleAsync(AsyncTestDelegate testDelegate)
- 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 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 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 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 TExpected Throws<TExpected>(IResolveConstraint expression, Action code, string message, object[] args) where TExpected : Exception
- 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 Task<Exception> ThrowsAsync(IResolveConstraint expression, Func<Task> asyncCode, string message, object[] args)
- public static Task<Exception> ThrowsAsync(IResolveConstraint expression, Func<Task> asyncCode)
- public static Task<Exception> ThrowsAsync(Type expectedExceptionType, Func<Task> asyncCode, string message, object[] args)
- public static Task<Exception> ThrowsAsync(Type expectedExceptionType, Func<Task> asyncCode)
- public static Task<TActual> ThrowsAsync<TActual>(Func<Task> asyncCode, string message, object[] args) where TActual : Exception
- public static Task<TActual> ThrowsAsync<TActual>(Func<Task> asyncCode) where TActual : Exception
- 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(IResolveConstraint expression, AsyncTestDelegate code)
- 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 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 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 sealed delegate AsyncTestDelegate : MulticastDelegate
-
public static class ExceptionConstraintExtensions
-
public abstract class IncludeExcludeAttribute : NUnitAttribute
-
public abstract class Is
-
public sealed class MaxTimeAttribute : PropertyAttribute, IWrapSetUpTearDown, ICommandWrapper
-
public class NoTestsAttribute : PropertyAttribute, IApplyToTest
-
public class PlatformAttribute : IncludeExcludeAttribute, IApplyToTest
-
public static class PlatformNames
-
public class RepeatAttribute : PropertyAttribute, IRepeatTest, ICommandWrapper
-
public class TestCaseData : TestCaseParameters
- public static TestCaseData<T> Create<T>(T argument)
- public static TestCaseData<T1, T2> Create<T1, T2>(T1 argument1, T2 argument2)
- public static TestCaseData<T1, T2, T3> Create<T1, T2, T3>(T1 argument1, T2 argument2, T3 argument3)
- public static TestCaseData<T1, T2, T3, T4> Create<T1, T2, T3, T4>(T1 argument1, T2 argument2, T3 argument3, T4 argument4)
- public static TestCaseData<T1, T2, T3, T4, T5> Create<T1, T2, T3, T4, T5>(T1 argument1, T2 argument2, T3 argument3, T4 argument4, T5 argument5)
- public TestCaseData Explicit()
- public TestCaseData Explicit(string reason)
- public IgnoredTestCaseData Ignore(string reason)
- public TestCaseData Returns(object result)
- public TestCaseData SetArgDisplayNames(string[] displayNames)
- public TestCaseData SetArgDisplayNames(object[] displayNames)
- public TestCaseData SetCategory(string category)
- public TestCaseData SetDescription(string description)
- public TestCaseData SetName(string name)
- public TestCaseData SetProperty(string propName, string propValue)
- public TestCaseData SetProperty(string propName, int propValue)
- public TestCaseData SetProperty(string propName, double propValue)
-
public class TestCaseData<T> : TestCaseData
- public TestCaseDataWithReturn<T, TReturn> Returns<TReturn>(TReturn result)
-
public class TestCaseData<T1, T2> : TestCaseData
- public TestCaseDataWithReturn<T1, T2, TReturn> Returns<TReturn>(TReturn result)
-
public class TestCaseData<T1, T2, T3> : TestCaseData
- public TestCaseDataWithReturn<T1, T2, T3, TReturn> Returns<TReturn>(TReturn result)
-
public class TestCaseData<T1, T2, T3, T4> : TestCaseData
- public TestCaseDataWithReturn<T1, T2, T3, T4, TReturn> Returns<TReturn>(TReturn result)
-
public class TestCaseData<T1, T2, T3, T4, T5> : TestCaseData
- public TestCaseDataWithReturn<T1, T2, T3, T4, T5, TReturn> Returns<TReturn>(TReturn result)
-
public abstract class TestCaseDataBase<TSelf> : TestCaseParameters where TSelf : TestCaseDataBase<TSelf>
-
public sealed class TestCaseDataWithReturn<T, TReturn> : TestCaseDataWithReturnBase<TestCaseDataWithReturn<T, TReturn>, TReturn>
-
public class TestCaseDataWithReturn<T1, T2, TReturn> : TestCaseDataWithReturnBase<TestCaseDataWithReturn<T1, T2, TReturn>, TReturn>
-
public class TestCaseDataWithReturn<T1, T2, T3, TReturn> : TestCaseDataWithReturnBase<TestCaseDataWithReturn<T1, T2, T3, TReturn>, TReturn>
-
public class TestCaseDataWithReturn<T1, T2, T3, T4, TReturn> : TestCaseDataWithReturnBase<TestCaseDataWithReturn<T1, T2, T3, T4, TReturn>, TReturn>
-
public class TestCaseDataWithReturn<T1, T2, T3, T4, T5, TReturn> : TestCaseDataWithReturnBase<TestCaseDataWithReturn<T1, T2, T3, T4, T5, TReturn>, TReturn>
-
public abstract class TestCaseDataWithReturnBase<TSelf, TReturn> : TestCaseDataBase<TSelf> where TSelf : TestCaseDataWithReturnBase<TSelf, TReturn>
-
public sealed delegate TestDelegate : MulticastDelegate
-
public abstract class Throws
-
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 If<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, NUnitString message = default, string actualExpression = "", string constraintExpression = "")
- public static void If<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, FormattableString message, string actualExpression = "", string constraintExpression = "")
- public static void If<TActual>(ActualValueDelegate<TActual> del, 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 void Unless<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, NUnitString message = default, string actualExpression = "", string constraintExpression = "")
- public static void Unless<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, FormattableString message, string actualExpression = "", string constraintExpression = "")
- public static void Unless<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, Func<string> getExceptionMessage, string actualExpression = "", string constraintExpression = "")
-
public abstract class CollectionAssert : AssertBase
-
public abstract class DirectoryAssert : AssertBase
-
public abstract class FileAssert : AssertBase
-
public abstract class StringAssert : AssertBase
NUnit.Framework.Constraints
NUnit.Framework.Internal
NUnit.Framework.Internal.Commands
NUnit.Framework.Legacy
-
public abstract class CollectionAssert : AssertBase
- protected CollectionAssert()
- public static void AllItemsAreInstancesOfType(IEnumerable collection, Type expectedType)
- public static void AllItemsAreInstancesOfType(IEnumerable collection, Type expectedType, string message, object[] args)
- public static void AllItemsAreNotNull(IEnumerable collection)
- public static void AllItemsAreNotNull(IEnumerable collection, string message, object[] args)
- public static void AllItemsAreUnique(IEnumerable collection)
- public static void AllItemsAreUnique(IEnumerable collection, string message, object[] args)
- public static void AreEqual(IEnumerable expected, IEnumerable actual)
- public static void AreEqual(IEnumerable expected, IEnumerable actual, IComparer comparer)
- public static void AreEqual(IEnumerable expected, IEnumerable actual, string message, object[] args)
- public static void AreEqual(IEnumerable expected, IEnumerable actual, IComparer comparer, string message, object[] args)
- public static void AreEquivalent(IEnumerable expected, IEnumerable actual)
- public static void AreEquivalent(IEnumerable expected, IEnumerable actual, string message, object[] args)
- public static void AreNotEqual(IEnumerable expected, IEnumerable actual)
- public static void AreNotEqual(IEnumerable expected, IEnumerable actual, IComparer comparer)
- public static void AreNotEqual(IEnumerable expected, IEnumerable actual, string message, object[] args)
- public static void AreNotEqual(IEnumerable expected, IEnumerable actual, IComparer comparer, string message, object[] args)
- public static void AreNotEquivalent(IEnumerable expected, IEnumerable actual)
- public static void AreNotEquivalent(IEnumerable expected, IEnumerable actual, string message, object[] args)
- public static void Contains(IEnumerable collection, object actual)
- public static void Contains(IEnumerable collection, object actual, string message, object[] args)
- public static void DoesNotContain(IEnumerable collection, object actual)
- public static void DoesNotContain(IEnumerable collection, object actual, string message, object[] args)
- public static bool Equals(object a, object b)
- public static void IsEmpty(IEnumerable collection, string message, object[] args)
- public static void IsEmpty(IEnumerable collection)
- public static void IsNotEmpty(IEnumerable collection, string message, object[] args)
- public static void IsNotEmpty(IEnumerable collection)
- public static void IsNotSubsetOf(IEnumerable subset, IEnumerable superset)
- public static void IsNotSubsetOf(IEnumerable subset, IEnumerable superset, string message, object[] args)
- public static void IsNotSupersetOf(IEnumerable superset, IEnumerable subset)
- public static void IsNotSupersetOf(IEnumerable superset, IEnumerable subset, string message, object[] args)
- public static void IsOrdered(IEnumerable collection, string message, object[] args)
- public static void IsOrdered(IEnumerable collection)
- public static void IsOrdered(IEnumerable collection, IComparer comparer, string message, object[] args)
- public static void IsOrdered(IEnumerable collection, IComparer comparer)
- public static void IsSubsetOf(IEnumerable subset, IEnumerable superset)
- public static void IsSubsetOf(IEnumerable subset, IEnumerable superset, string message, object[] args)
- public static void IsSupersetOf(IEnumerable superset, IEnumerable subset)
- public static void IsSupersetOf(IEnumerable superset, IEnumerable subset, string message, object[] args)
- public static void ReferenceEquals(object a, object b)
-
public abstract class DirectoryAssert : AssertBase
- protected DirectoryAssert()
- public static void AreEqual(DirectoryInfo expected, DirectoryInfo actual, string message, object[] args)
- public static void AreEqual(DirectoryInfo expected, DirectoryInfo actual)
- public static void AreNotEqual(DirectoryInfo expected, DirectoryInfo actual, string message, object[] args)
- public static void AreNotEqual(DirectoryInfo expected, DirectoryInfo actual)
- public static void DoesNotExist(DirectoryInfo actual, string message, object[] args)
- public static void DoesNotExist(DirectoryInfo actual)
- public static void DoesNotExist(string actual, string message, object[] args)
- public static void DoesNotExist(string actual)
- public static bool Equals(object a, object b)
- public static void Exists(DirectoryInfo actual, string message, object[] args)
- public static void Exists(DirectoryInfo actual)
- public static void Exists(string actual, string message, object[] args)
- public static void Exists(string actual)
- public static void ReferenceEquals(object a, object b)
-
public abstract class FileAssert : AssertBase
- protected FileAssert()
- public static void AreEqual(Stream expected, Stream actual, string message, object[] args)
- public static void AreEqual(Stream expected, Stream actual)
- public static void AreEqual(FileInfo expected, FileInfo actual, string message, object[] args)
- public static void AreEqual(FileInfo expected, FileInfo actual)
- public static void AreEqual(string expected, string actual, string message, object[] args)
- public static void AreEqual(string expected, string actual)
- public static void AreNotEqual(Stream expected, Stream actual, string message, object[] args)
- public static void AreNotEqual(Stream expected, Stream actual)
- public static void AreNotEqual(FileInfo expected, FileInfo actual, string message, object[] args)
- public static void AreNotEqual(FileInfo expected, FileInfo actual)
- public static void AreNotEqual(string expected, string actual, string message, object[] args)
- public static void AreNotEqual(string expected, string actual)
- public static void DoesNotExist(FileInfo actual, string message, object[] args)
- public static void DoesNotExist(FileInfo actual)
- public static void DoesNotExist(string actual, string message, object[] args)
- public static void DoesNotExist(string actual)
- public static bool Equals(object a, object b)
- public static void Exists(FileInfo actual, string message, object[] args)
- public static void Exists(FileInfo actual)
- public static void Exists(string actual, string message, object[] args)
- public static void Exists(string actual)
- public static void ReferenceEquals(object a, object b)
-
public abstract class StringAssert : AssertBase
- protected StringAssert()
- public static void AreEqualIgnoringCase(string expected, string actual, string message, object[] args)
- public static void AreEqualIgnoringCase(string expected, string actual)
- public static void AreNotEqualIgnoringCase(string expected, string actual, string message, object[] args)
- public static void AreNotEqualIgnoringCase(string expected, string actual)
- public static void Contains(string expected, string actual, string message, object[] args)
- public static void Contains(string expected, string actual)
- public static void DoesNotContain(string expected, string actual, string message, object[] args)
- public static void DoesNotContain(string expected, string actual)
- public static void DoesNotEndWith(string expected, string actual, string message, object[] args)
- public static void DoesNotEndWith(string expected, string actual)
- public static void DoesNotMatch(string pattern, string actual, string message, object[] args)
- public static void DoesNotMatch(string pattern, string actual)
- public static void DoesNotStartWith(string expected, string actual, string message, object[] args)
- public static void DoesNotStartWith(string expected, string actual)
- public static void EndsWith(string expected, string actual, string message, object[] args)
- public static void EndsWith(string expected, string actual)
- public static bool Equals(object a, object b)
- public static void IsMatch(string pattern, string actual, string message, object[] args)
- public static void IsMatch(string pattern, string actual)
- public static void IsNotNullNorEmpty(string actual, string message, object[] args)
- public static void IsNotNullNorEmpty(string actual)
- public static void IsNotNullNorWhiteSpace(string actual, string message, object[] args)
- public static void IsNotNullNorWhiteSpace(string actual)
- public static void IsNullOrEmpty(string actual, string message, object[] args)
- public static void IsNullOrEmpty(string actual)
- public static void IsNullOrWhiteSpace(string actual, string message, object[] args)
- public static void IsNullOrWhiteSpace(string actual)
- public static void ReferenceEquals(object a, object b)
- public static void StartsWith(string expected, string actual, string message, object[] args)
- public static void StartsWith(string expected, string actual)