Skip to content

Latest commit

 

History

History
55 lines (55 loc) · 9.88 KB

index.md

File metadata and controls

55 lines (55 loc) · 9.88 KB
Id Title Enabled by Default
NUnit1001 The individual arguments provided by a TestCaseAttribute must match the type of the corresponding parameter of the method.
NUnit1002 The TestCaseSource should use nameof operator to specify target.
NUnit1003 The TestCaseAttribute provided too few arguments.
NUnit1004 The TestCaseAttribute provided too many arguments.
NUnit1005 The type of the value specified via ExpectedResult must match the return type of the method.
NUnit1006 ExpectedResult must not be specified when the method returns void.
NUnit1007 The method has non-void return type, but no result is expected in ExpectedResult.
NUnit1008 Specifying ParallelScope.Self on assembly level has no effect.
NUnit1009 One may not specify ParallelScope.Children on a non-parameterized test method.
NUnit1010 One may not specify ParallelScope.Fixtures on a test method.
NUnit1011 The TestCaseSource argument does not specify an existing member.
NUnit1012 The async test method must have a non-void return type.
NUnit1013 The async test method must have a non-generic Task return type when no result is expected.
NUnit1014 The async test method must have a Task return type when a result is expected.
NUnit1015 The source type does not implement IEnumerable.
NUnit1016 The source type does not have a default constructor.
NUnit1017 The specified source is not static.
NUnit1018 The number of parameters provided by the TestCaseSource does not match the number of parameters in the target method.
NUnit1019 The source specified by the TestCaseSource does not return an IEnumerable or a type that implements IEnumerable.
NUnit1020 The TestCaseSource provides parameters to a source - field or property - that expects no parameters.
NUnit1021 The ValueSource should use nameof operator to specify target.
NUnit1022 The specified source is not static.
NUnit1023 The target method expects parameters which cannot be supplied by the ValueSource.
NUnit1024 The source specified by the ValueSource does not return an IEnumerable or a type that implements IEnumerable.
NUnit1025 The ValueSource argument does not specify an existing member.
NUnit1026 The test method is not public.
NUnit1027 The test method has parameters, but no arguments are supplied by attributes.
NUnit2001 Consider using Assert.That(expr, Is.False) instead of Assert.False(expr).
NUnit2002 Consider using Assert.That(expr, Is.False) instead of Assert.IsFalse(expr).
NUnit2003 Consider using Assert.That(expr, Is.True) instead of Assert.IsTrue(expr).
NUnit2004 Consider using Assert.That(expr, Is.True) instead of Assert.True(expr).
NUnit2005 Consider using Assert.That(actual, Is.EqualTo(expected)) instead of Assert.AreEqual(expected, actual).
NUnit2006 Consider using Assert.That(actual, Is.Not.EqualTo(expected)) instead of Assert.AreNotEqual(expected, actual).
NUnit2007 The actual value should not be a constant.
NUnit2008 Incorrect IgnoreCase usage.
NUnit2009 The same value has been provided as both the actual and the expected argument.
NUnit2010 Use EqualConstraint for better assertion messages in case of failure.
NUnit2011 Use ContainsConstraint for better assertion messages in case of failure.
NUnit2012 Use StartsWithConstraint for better assertion messages in case of failure.
NUnit2013 Use EndsWithConstraint for better assertion messages in case of failure.
NUnit2014 Use SomeItemsConstraint for better assertion messages in case of failure.
NUnit2015 Consider using Assert.That(actual, Is.SameAs(expected)) instead of Assert.AreSame(expected, actual).
NUnit2016 Consider using Assert.That(expr, Is.Null) instead of Assert.Null(expr).
NUnit2017 Consider using Assert.That(expr, Is.Null) instead of Assert.IsNull(expr).
NUnit2018 Consider using Assert.That(expr, Is.Not.Null) instead of Assert.NotNull(expr).
NUnit2019 Consider using Assert.That(expr, Is.Not.Null) instead of Assert.IsNotNull(expr).
NUnit2020 Incompatible types for SameAs constraint.
NUnit2021 Incompatible types for EqualTo constraint.
NUnit2022 Missing property required for constraint.
NUnit2023 Invalid NullConstraint usage.
NUnit2024 Wrong actual type used with String Constraint.
NUnit2025 Wrong actual type used with ContainsConstraint.
NUnit2026 Wrong actual type used with the SomeItemsConstraint with EqualConstraint.