API Differences between 4.2.2 and 4.6.0
9 Additions
215 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 static class EqualNumericWithoutUsingConstraintExtensions
-
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 static class IEqualWithUsingConstraintExtensions
-
public abstract class IncludeExcludeAttribute : NUnitAttribute
-
public abstract class Is
-
public class NoTestsAttribute : PropertyAttribute, IApplyToTest
-
public class PlatformAttribute : IncludeExcludeAttribute, IApplyToTest
-
public static class PlatformNames
-
public class RepeatAttribute : PropertyAttribute, IRepeatTest, ICommandWrapper
-
public class RetryAttribute : NUnitAttribute, IRepeatTest, ICommandWrapper
-
public class TestCaseData : TestCaseParameters
-
public class TestCaseData<T> : 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
-
public class AllItemsConstraint : PrefixConstraint
-
public class AnyOfConstraint : Constraint
-
public abstract class CollectionItemsEqualConstraint : CollectionConstraint
-
public abstract class Constraint : IConstraint, IResolveConstraint
-
public sealed class ConstraintBuilder : IResolveConstraint
-
public class ConstraintExpression
- public MultipleOfConstraint Even { get; }
- public MultipleOfConstraint Odd { get; }
- public static SameAsConstraint<T> SameAs<T>(T expected)
- public SomeItemsConstraint<T> Contain<T>(T expected)
- public SomeItemsConstraint<T> Contains<T>(T expected)
- public EqualConstraint<T> EqualTo<T>(T expected)
- public EqualStringConstraint EqualTo(string expected)
- public EqualDateTimeOffsetConstraint EqualTo(DateTimeOffset expected)
- public EqualTimeBaseConstraint<DateTime> EqualTo(DateTime expected)
- public EqualTimeBaseConstraint<TimeSpan> EqualTo(TimeSpan expected)
- public EqualNumericConstraint<double> EqualTo(double expected)
- public EqualNumericConstraint<float> EqualTo(float expected)
- public EqualNumericConstraint<decimal> EqualTo(decimal expected)
- public EqualNumericConstraint<long> EqualTo(long expected)
- public EqualNumericConstraint<int> EqualTo(int expected)
- public EqualNumericConstraint<short> EqualTo(short expected)
- public EqualNumericConstraint<byte> EqualTo(byte expected)
- public EqualNumericConstraint<ulong> EqualTo(ulong expected)
- public EqualNumericConstraint<uint> EqualTo(uint expected)
- public EqualNumericConstraint<ushort> EqualTo(ushort expected)
- public EqualNumericConstraint<sbyte> EqualTo(sbyte expected)
- public SomeItemsConstraint<T> Member<T>(T expected)
- public MultipleOfConstraint MultipleOf(int multiple)
-
public class ContainsConstraint : Constraint
-
public class EqualConstraint : Constraint
-
public class EqualConstraint<T> : EqualConstraint
-
public class EqualConstraintResult : ConstraintResult
- public EqualConstraintResult(Constraint constraint, object actual, Tolerance tolerance, bool hasSucceeded)
- public EqualConstraintResult(Constraint constraint, object actual, bool hasSucceeded)
- public EqualConstraintResult(EqualStringWithoutUsingConstraint constraint, object actual, bool caseInsensitive, bool ignoringWhiteSpace, bool clipStrings, bool hasSucceeded)
- public EqualConstraintResult(EqualStringWithoutUsingConstraint constraint, object actual, bool caseInsensitive, bool ignoringWhiteSpace, bool ignoringLineEndingFormat, bool clipStrings, bool hasSucceeded)
-
public class EqualDateTimeOffsetConstraint : EqualTimeBaseConstraint<DateTimeOffset>
-
public class EqualDateTimeOffsetConstraintWithSameOffset : Constraint
-
public class EqualNumericConstraint<T> : EqualNumericWithoutUsingConstraint<T>, IEqualWithUsingConstraint<T> where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType), IConvertible
-
public class EqualNumericWithoutUsingConstraint<T> : Constraint where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType), IConvertible
-
public class EqualStringConstraint : EqualStringWithoutUsingConstraint, IEqualWithUsingConstraint<string>
-
public class EqualStringWithoutUsingConstraint : Constraint
-
public class EqualTimeBaseConstraint<T> : Constraint where T : struct, IEquatable<T>, IComparable<T>
-
public class EqualTimeBasedConstraintWithNumericTolerance<T> where T : IEquatable<T>, IComparable<T>
-
public class EqualTimeBasedConstraintWithTimeSpanTolerance<T> : Constraint where T : IEquatable<T>, IComparable<T>
-
public class EqualUsingConstraint<T> : Constraint
-
public class ExactCountConstraint : Constraint
-
public interface IConstraint : IResolveConstraint
-
public interface IEnumerableConstraint : IConstraint, IResolveConstraint
-
public class MultipleOfConstraint : Constraint
-
public class NoItemConstraint : PrefixConstraint
-
public sealed class NUnitEqualityComparer
-
public abstract class PathConstraint : StringConstraint
-
public class PropertiesComparerConfiguration
-
public class PropertiesComparerConfiguration<T> : PropertiesComparerConfiguration
-
public class PropertiesComparerConfigurationUntyped : PropertiesComparerConfiguration
-
public class SameAsConstraint<T> : SameAsConstraint
-
public class SomeItemsConstraint : PrefixConstraint
-
public class SomeItemsConstraint<T> : SomeItemsConstraint
-
public abstract class StringConstraint : Constraint
NUnit.Framework.Interfaces
NUnit.Framework.Internal
-
public static class PropertyNames
-
public static class Reflect
-
public sealed class SafeIndirectSynchronizationContext : SafeSynchronizationContext
-
public class SafeSynchronizationContext : SynchronizationContext
-
public static class StringUtil
- public static int Compare(string strA, string strB, bool ignoreCase)
- public static bool StringsEqual(string strA, string strB, bool ignoreCase)
-
public class TestCaseParameters : TestParameters, ITestCaseData, ITestData, IApplyToTest
-
public class TestExecutionContext : LongLivedMarshalByRefObject
-
public abstract class TestFilter : ITestFilter, IXmlNodeBuilder
-
public abstract class TestParameters : ITestData, IApplyToTest
-
public abstract class TestResult : LongLivedMarshalByRefObject, ITestResult, IXmlNodeBuilder
-
public static class TypeHelper
NUnit.Framework.Internal.ExecutionHooks
NUnit.Framework.Legacy