diff --git a/docs/articles/nunit-analyzers/NUnit-Analyzers.md b/docs/articles/nunit-analyzers/NUnit-Analyzers.md index 27dd9fa9e..b75dff4c5 100644 --- a/docs/articles/nunit-analyzers/NUnit-Analyzers.md +++ b/docs/articles/nunit-analyzers/NUnit-Analyzers.md @@ -124,6 +124,8 @@ Rules which improve assertions in the test code. | [NUnit2054](NUnit2054.md) | Consider using Assert.That(actual, Is.Not.AssignableFrom(expected)) instead of ClassicAssert.IsNotAssignableFrom(expected, actual) | :white_check_mark: | :information_source: | :white_check_mark: | | [NUnit2055](NUnit2055.md) | Consider using Is.InstanceOf\ constraint instead of an 'is T' expression | :white_check_mark: | :information_source: | :white_check_mark: | | [NUnit2056](NUnit2056.md) | Consider using Assert.EnterMultipleScope statement instead of Assert.Multiple/Assert.MultipleAsync | :white_check_mark: | :information_source: | :white_check_mark: | +| [NUnit2057](NUnit2057.md) | Remove unnecessary lambda expression | :white_check_mark: | :information_source: | :white_check_mark: | +| [NUnit2058](NUnit2058.md) | The constraint is misused | :white_check_mark: | :warning: | :white_check_mark: | ## Suppressor Rules (NUnit3001 - ) diff --git a/docs/articles/nunit-analyzers/NUnit1001.md b/docs/articles/nunit-analyzers/NUnit1001.md index bd670ea1a..a8ac6c782 100644 --- a/docs/articles/nunit-analyzers/NUnit1001.md +++ b/docs/articles/nunit-analyzers/NUnit1001.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [TestCaseUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestCaseUsage/TestCaseUsageAnalyzer.cs) +| Code | [TestCaseUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestCaseUsage/TestCaseUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1002.md b/docs/articles/nunit-analyzers/NUnit1002.md index 1f66b6431..1300222ab 100644 --- a/docs/articles/nunit-analyzers/NUnit1002.md +++ b/docs/articles/nunit-analyzers/NUnit1002.md @@ -8,7 +8,7 @@ | Severity | Warning | Enabled | True | Category | Structure -| Code | [TestCaseSourceUsesStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestCaseSourceUsage/TestCaseSourceUsesStringAnalyzer.cs) +| Code | [TestCaseSourceUsesStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestCaseSourceUsage/TestCaseSourceUsesStringAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1003.md b/docs/articles/nunit-analyzers/NUnit1003.md index 44702867a..16f17094c 100644 --- a/docs/articles/nunit-analyzers/NUnit1003.md +++ b/docs/articles/nunit-analyzers/NUnit1003.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [TestCaseUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestCaseUsage/TestCaseUsageAnalyzer.cs) +| Code | [TestCaseUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestCaseUsage/TestCaseUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1004.md b/docs/articles/nunit-analyzers/NUnit1004.md index d9a244b8f..b1e6abca0 100644 --- a/docs/articles/nunit-analyzers/NUnit1004.md +++ b/docs/articles/nunit-analyzers/NUnit1004.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [TestCaseUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestCaseUsage/TestCaseUsageAnalyzer.cs) +| Code | [TestCaseUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestCaseUsage/TestCaseUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1005.md b/docs/articles/nunit-analyzers/NUnit1005.md index 7a7d96832..44c776d47 100644 --- a/docs/articles/nunit-analyzers/NUnit1005.md +++ b/docs/articles/nunit-analyzers/NUnit1005.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [TestMethodUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestMethodUsage/TestMethodUsageAnalyzer.cs) +| Code | [TestMethodUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestMethodUsage/TestMethodUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1006.md b/docs/articles/nunit-analyzers/NUnit1006.md index 50dcd2d1d..15fb8a66d 100644 --- a/docs/articles/nunit-analyzers/NUnit1006.md +++ b/docs/articles/nunit-analyzers/NUnit1006.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [TestMethodUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestMethodUsage/TestMethodUsageAnalyzer.cs) +| Code | [TestMethodUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestMethodUsage/TestMethodUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1007.md b/docs/articles/nunit-analyzers/NUnit1007.md index 7755e2a3a..85a1f5686 100644 --- a/docs/articles/nunit-analyzers/NUnit1007.md +++ b/docs/articles/nunit-analyzers/NUnit1007.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [TestMethodUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestMethodUsage/TestMethodUsageAnalyzer.cs) +| Code | [TestMethodUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestMethodUsage/TestMethodUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1008.md b/docs/articles/nunit-analyzers/NUnit1008.md index aed818331..518228c3b 100644 --- a/docs/articles/nunit-analyzers/NUnit1008.md +++ b/docs/articles/nunit-analyzers/NUnit1008.md @@ -8,7 +8,7 @@ | Severity | Warning | Enabled | True | Category | Structure -| Code | [ParallelizableUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ParallelizableUsage/ParallelizableUsageAnalyzer.cs) +| Code | [ParallelizableUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ParallelizableUsage/ParallelizableUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1009.md b/docs/articles/nunit-analyzers/NUnit1009.md index c0329fee8..3a9c8c476 100644 --- a/docs/articles/nunit-analyzers/NUnit1009.md +++ b/docs/articles/nunit-analyzers/NUnit1009.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [ParallelizableUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ParallelizableUsage/ParallelizableUsageAnalyzer.cs) +| Code | [ParallelizableUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ParallelizableUsage/ParallelizableUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1010.md b/docs/articles/nunit-analyzers/NUnit1010.md index d95999c2d..32aeba686 100644 --- a/docs/articles/nunit-analyzers/NUnit1010.md +++ b/docs/articles/nunit-analyzers/NUnit1010.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [ParallelizableUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ParallelizableUsage/ParallelizableUsageAnalyzer.cs) +| Code | [ParallelizableUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ParallelizableUsage/ParallelizableUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1011.md b/docs/articles/nunit-analyzers/NUnit1011.md index 6245d2e87..a0c411608 100644 --- a/docs/articles/nunit-analyzers/NUnit1011.md +++ b/docs/articles/nunit-analyzers/NUnit1011.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [TestCaseSourceUsesStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestCaseSourceUsage/TestCaseSourceUsesStringAnalyzer.cs) +| Code | [TestCaseSourceUsesStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestCaseSourceUsage/TestCaseSourceUsesStringAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1012.md b/docs/articles/nunit-analyzers/NUnit1012.md index 4c1bb5118..65d9c228b 100644 --- a/docs/articles/nunit-analyzers/NUnit1012.md +++ b/docs/articles/nunit-analyzers/NUnit1012.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [TestMethodUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestMethodUsage/TestMethodUsageAnalyzer.cs) +| Code | [TestMethodUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestMethodUsage/TestMethodUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1013.md b/docs/articles/nunit-analyzers/NUnit1013.md index c282893b1..b1c7ee5fc 100644 --- a/docs/articles/nunit-analyzers/NUnit1013.md +++ b/docs/articles/nunit-analyzers/NUnit1013.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [TestMethodUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestMethodUsage/TestMethodUsageAnalyzer.cs) +| Code | [TestMethodUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestMethodUsage/TestMethodUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1014.md b/docs/articles/nunit-analyzers/NUnit1014.md index 36f6f4927..a368cd2f4 100644 --- a/docs/articles/nunit-analyzers/NUnit1014.md +++ b/docs/articles/nunit-analyzers/NUnit1014.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [TestMethodUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestMethodUsage/TestMethodUsageAnalyzer.cs) +| Code | [TestMethodUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestMethodUsage/TestMethodUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1015.md b/docs/articles/nunit-analyzers/NUnit1015.md index 9456e8473..5fd08d949 100644 --- a/docs/articles/nunit-analyzers/NUnit1015.md +++ b/docs/articles/nunit-analyzers/NUnit1015.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [TestCaseSourceUsesStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestCaseSourceUsage/TestCaseSourceUsesStringAnalyzer.cs) +| Code | [TestCaseSourceUsesStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestCaseSourceUsage/TestCaseSourceUsesStringAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1016.md b/docs/articles/nunit-analyzers/NUnit1016.md index a0b4542d9..1060d2517 100644 --- a/docs/articles/nunit-analyzers/NUnit1016.md +++ b/docs/articles/nunit-analyzers/NUnit1016.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [TestCaseSourceUsesStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestCaseSourceUsage/TestCaseSourceUsesStringAnalyzer.cs) +| Code | [TestCaseSourceUsesStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestCaseSourceUsage/TestCaseSourceUsesStringAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1017.md b/docs/articles/nunit-analyzers/NUnit1017.md index d1ca37f9c..d5ebd7e69 100644 --- a/docs/articles/nunit-analyzers/NUnit1017.md +++ b/docs/articles/nunit-analyzers/NUnit1017.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [TestCaseSourceUsesStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestCaseSourceUsage/TestCaseSourceUsesStringAnalyzer.cs) +| Code | [TestCaseSourceUsesStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestCaseSourceUsage/TestCaseSourceUsesStringAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1018.md b/docs/articles/nunit-analyzers/NUnit1018.md index 980060443..c5ae1d980 100644 --- a/docs/articles/nunit-analyzers/NUnit1018.md +++ b/docs/articles/nunit-analyzers/NUnit1018.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [TestCaseSourceUsesStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestCaseSourceUsage/TestCaseSourceUsesStringAnalyzer.cs) +| Code | [TestCaseSourceUsesStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestCaseSourceUsage/TestCaseSourceUsesStringAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1019.md b/docs/articles/nunit-analyzers/NUnit1019.md index 94dde7ff7..b49bd7b6e 100644 --- a/docs/articles/nunit-analyzers/NUnit1019.md +++ b/docs/articles/nunit-analyzers/NUnit1019.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [TestCaseSourceUsesStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestCaseSourceUsage/TestCaseSourceUsesStringAnalyzer.cs) +| Code | [TestCaseSourceUsesStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestCaseSourceUsage/TestCaseSourceUsesStringAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1020.md b/docs/articles/nunit-analyzers/NUnit1020.md index bca474850..7495a47f1 100644 --- a/docs/articles/nunit-analyzers/NUnit1020.md +++ b/docs/articles/nunit-analyzers/NUnit1020.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [TestCaseSourceUsesStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestCaseSourceUsage/TestCaseSourceUsesStringAnalyzer.cs) +| Code | [TestCaseSourceUsesStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestCaseSourceUsage/TestCaseSourceUsesStringAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1021.md b/docs/articles/nunit-analyzers/NUnit1021.md index 97938cbf4..0e7a4a36f 100644 --- a/docs/articles/nunit-analyzers/NUnit1021.md +++ b/docs/articles/nunit-analyzers/NUnit1021.md @@ -8,7 +8,7 @@ | Severity | Warning | Enabled | True | Category | Structure -| Code | [ValueSourceUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ValueSourceUsage/ValueSourceUsageAnalyzer.cs) +| Code | [ValueSourceUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ValueSourceUsage/ValueSourceUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1022.md b/docs/articles/nunit-analyzers/NUnit1022.md index 6c0398547..9c23bff6a 100644 --- a/docs/articles/nunit-analyzers/NUnit1022.md +++ b/docs/articles/nunit-analyzers/NUnit1022.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [ValueSourceUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ValueSourceUsage/ValueSourceUsageAnalyzer.cs) +| Code | [ValueSourceUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ValueSourceUsage/ValueSourceUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1023.md b/docs/articles/nunit-analyzers/NUnit1023.md index 81ebf8ed0..1db18fcd5 100644 --- a/docs/articles/nunit-analyzers/NUnit1023.md +++ b/docs/articles/nunit-analyzers/NUnit1023.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [ValueSourceUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ValueSourceUsage/ValueSourceUsageAnalyzer.cs) +| Code | [ValueSourceUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ValueSourceUsage/ValueSourceUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1024.md b/docs/articles/nunit-analyzers/NUnit1024.md index 1455d1bed..03e3cd3b4 100644 --- a/docs/articles/nunit-analyzers/NUnit1024.md +++ b/docs/articles/nunit-analyzers/NUnit1024.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [ValueSourceUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ValueSourceUsage/ValueSourceUsageAnalyzer.cs) +| Code | [ValueSourceUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ValueSourceUsage/ValueSourceUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1025.md b/docs/articles/nunit-analyzers/NUnit1025.md index 188bf7c99..9485ba474 100644 --- a/docs/articles/nunit-analyzers/NUnit1025.md +++ b/docs/articles/nunit-analyzers/NUnit1025.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [ValueSourceUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ValueSourceUsage/ValueSourceUsageAnalyzer.cs) +| Code | [ValueSourceUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ValueSourceUsage/ValueSourceUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1026.md b/docs/articles/nunit-analyzers/NUnit1026.md index 6cd1475d1..9be3c4c4d 100644 --- a/docs/articles/nunit-analyzers/NUnit1026.md +++ b/docs/articles/nunit-analyzers/NUnit1026.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [TestMethodAccessibilityLevelAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestMethodAccessibilityLevel/TestMethodAccessibilityLevelAnalyzer.cs) +| Code | [TestMethodAccessibilityLevelAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestMethodAccessibilityLevel/TestMethodAccessibilityLevelAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1027.md b/docs/articles/nunit-analyzers/NUnit1027.md index 49a7ac568..3c1e2f77d 100644 --- a/docs/articles/nunit-analyzers/NUnit1027.md +++ b/docs/articles/nunit-analyzers/NUnit1027.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [TestMethodUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestMethodUsage/TestMethodUsageAnalyzer.cs) +| Code | [TestMethodUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestMethodUsage/TestMethodUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1028.md b/docs/articles/nunit-analyzers/NUnit1028.md index a5bf29fae..a0e27c2e5 100644 --- a/docs/articles/nunit-analyzers/NUnit1028.md +++ b/docs/articles/nunit-analyzers/NUnit1028.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Structure -| Code | [NonTestMethodAccessibilityLevelAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/NonTestMethodAccessibilityLevel/NonTestMethodAccessibilityLevelAnalyzer.cs) +| Code | [NonTestMethodAccessibilityLevelAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/NonTestMethodAccessibilityLevel/NonTestMethodAccessibilityLevelAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1029.md b/docs/articles/nunit-analyzers/NUnit1029.md index c5c54f0ad..dd47b7d88 100644 --- a/docs/articles/nunit-analyzers/NUnit1029.md +++ b/docs/articles/nunit-analyzers/NUnit1029.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [TestCaseSourceUsesStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestCaseSourceUsage/TestCaseSourceUsesStringAnalyzer.cs) +| Code | [TestCaseSourceUsesStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestCaseSourceUsage/TestCaseSourceUsesStringAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1030.md b/docs/articles/nunit-analyzers/NUnit1030.md index 20fea140e..2bab88c3d 100644 --- a/docs/articles/nunit-analyzers/NUnit1030.md +++ b/docs/articles/nunit-analyzers/NUnit1030.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [TestCaseSourceUsesStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestCaseSourceUsage/TestCaseSourceUsesStringAnalyzer.cs) +| Code | [TestCaseSourceUsesStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestCaseSourceUsage/TestCaseSourceUsesStringAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1031.md b/docs/articles/nunit-analyzers/NUnit1031.md index b79cace18..2884c6bd4 100644 --- a/docs/articles/nunit-analyzers/NUnit1031.md +++ b/docs/articles/nunit-analyzers/NUnit1031.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [ValuesUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ValuesUsage/ValuesUsageAnalyzer.cs) +| Code | [ValuesUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ValuesUsage/ValuesUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1032.md b/docs/articles/nunit-analyzers/NUnit1032.md index 7b940fa7b..9d4d6588d 100644 --- a/docs/articles/nunit-analyzers/NUnit1032.md +++ b/docs/articles/nunit-analyzers/NUnit1032.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [DisposeFieldsAndPropertiesInTearDownAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/DisposeFieldsAndPropertiesInTearDown/DisposeFieldsAndPropertiesInTearDownAnalyzer.cs) +| Code | [DisposeFieldsAndPropertiesInTearDownAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/DisposeFieldsAndPropertiesInTearDown/DisposeFieldsAndPropertiesInTearDownAnalyzer.cs) ## Description @@ -72,6 +72,23 @@ the following line. dotnet_diagnostic.NUnit1032.additional_dispose_methods = Quit, Exit ``` +## Specifying additional SetUp and TearDown methods + +The analyzer can only analyze the current class and doesn't know if an `overridden` method +is called from the base class' (OneTime)SetUp and (OneTime)TearDown methods. +It is possible to specify those methods in the `.editorconfig` +and have the analyzer treat them like SetUp and TearDown methods. +There are four configurations for this: + +* `dotnet_diagnostic.NUnit.additional_setup_methods` +* `dotnet_diagnostic.NUnit.additional_teardown_methods` +* `dotnet_diagnostic.NUnit.additional_one_time_setup_methods` +* `dotnet_diagnostic.NUnit.additional_one_time_teardown_methods` + +The configuration accepts a list of method names - separated by either comma, semicolon, or space. + +Note that this configuration is shared with the [NUnit 3002](./NUnit3002.md) analyzer. + ## Configure severity diff --git a/docs/articles/nunit-analyzers/NUnit1033.md b/docs/articles/nunit-analyzers/NUnit1033.md index e271b9301..ef2d48127 100644 --- a/docs/articles/nunit-analyzers/NUnit1033.md +++ b/docs/articles/nunit-analyzers/NUnit1033.md @@ -8,7 +8,7 @@ | Severity | Warning | Enabled | True | Category | Structure -| Code | [TestContextWriteIsObsoleteAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestContextWriteIsObsolete/TestContextWriteIsObsoleteAnalyzer.cs) +| Code | [TestContextWriteIsObsoleteAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestContextWriteIsObsolete/TestContextWriteIsObsoleteAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1034.md b/docs/articles/nunit-analyzers/NUnit1034.md index 333bd7275..386c3a5ae 100644 --- a/docs/articles/nunit-analyzers/NUnit1034.md +++ b/docs/articles/nunit-analyzers/NUnit1034.md @@ -8,7 +8,7 @@ | Severity | Warning | Enabled | True | Category | Structure -| Code | [TestFixtureShouldBeAbstractAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/TestFixtureShouldBeAbstract/TestFixtureShouldBeAbstractAnalyzer.cs) +| Code | [TestFixtureShouldBeAbstractAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/TestFixtureShouldBeAbstract/TestFixtureShouldBeAbstractAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1035.md b/docs/articles/nunit-analyzers/NUnit1035.md index c427b9c3e..d1185dd3c 100644 --- a/docs/articles/nunit-analyzers/NUnit1035.md +++ b/docs/articles/nunit-analyzers/NUnit1035.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [RangeUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/RangeUsage/RangeUsageAnalyzer.cs) +| Code | [RangeUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/RangeUsage/RangeUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1036.md b/docs/articles/nunit-analyzers/NUnit1036.md index 15d160ab7..96f90ce6b 100644 --- a/docs/articles/nunit-analyzers/NUnit1036.md +++ b/docs/articles/nunit-analyzers/NUnit1036.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [RangeUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/RangeUsage/RangeUsageAnalyzer.cs) +| Code | [RangeUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/RangeUsage/RangeUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1037.md b/docs/articles/nunit-analyzers/NUnit1037.md index ee129d49b..fc1850780 100644 --- a/docs/articles/nunit-analyzers/NUnit1037.md +++ b/docs/articles/nunit-analyzers/NUnit1037.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [RangeUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/RangeUsage/RangeUsageAnalyzer.cs) +| Code | [RangeUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/RangeUsage/RangeUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit1038.md b/docs/articles/nunit-analyzers/NUnit1038.md index 87ed3fda3..60be5ab02 100644 --- a/docs/articles/nunit-analyzers/NUnit1038.md +++ b/docs/articles/nunit-analyzers/NUnit1038.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Structure -| Code | [RangeUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/RangeUsage/RangeUsageAnalyzer.cs) +| Code | [RangeUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/RangeUsage/RangeUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2001.md b/docs/articles/nunit-analyzers/NUnit2001.md index 6394dcbb1..58af8bf5e 100644 --- a/docs/articles/nunit-analyzers/NUnit2001.md +++ b/docs/articles/nunit-analyzers/NUnit2001.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2002.md b/docs/articles/nunit-analyzers/NUnit2002.md index a7f4b9301..24344b4e1 100644 --- a/docs/articles/nunit-analyzers/NUnit2002.md +++ b/docs/articles/nunit-analyzers/NUnit2002.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2003.md b/docs/articles/nunit-analyzers/NUnit2003.md index 68c042a25..e1029e6b1 100644 --- a/docs/articles/nunit-analyzers/NUnit2003.md +++ b/docs/articles/nunit-analyzers/NUnit2003.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2004.md b/docs/articles/nunit-analyzers/NUnit2004.md index b5538ae8c..2d1d40909 100644 --- a/docs/articles/nunit-analyzers/NUnit2004.md +++ b/docs/articles/nunit-analyzers/NUnit2004.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2005.md b/docs/articles/nunit-analyzers/NUnit2005.md index e69f3f285..50bf8f747 100644 --- a/docs/articles/nunit-analyzers/NUnit2005.md +++ b/docs/articles/nunit-analyzers/NUnit2005.md @@ -8,7 +8,7 @@ | Severity | Warning | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2006.md b/docs/articles/nunit-analyzers/NUnit2006.md index 96918cbfa..83903e148 100644 --- a/docs/articles/nunit-analyzers/NUnit2006.md +++ b/docs/articles/nunit-analyzers/NUnit2006.md @@ -8,7 +8,7 @@ | Severity | Warning | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2007.md b/docs/articles/nunit-analyzers/NUnit2007.md index 722d310e8..c692a860d 100644 --- a/docs/articles/nunit-analyzers/NUnit2007.md +++ b/docs/articles/nunit-analyzers/NUnit2007.md @@ -8,7 +8,7 @@ | Severity | Warning | Enabled | True | Category | Assertion -| Code | [ConstActualValueUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ConstActualValueUsage/ConstActualValueUsageAnalyzer.cs) +| Code | [ConstActualValueUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ConstActualValueUsage/ConstActualValueUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2008.md b/docs/articles/nunit-analyzers/NUnit2008.md index fd64f9dd2..ccb47831c 100644 --- a/docs/articles/nunit-analyzers/NUnit2008.md +++ b/docs/articles/nunit-analyzers/NUnit2008.md @@ -8,7 +8,7 @@ | Severity | Warning | Enabled | True | Category | Assertion -| Code | [IgnoreCaseUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/IgnoreCaseUsage/IgnoreCaseUsageAnalyzer.cs) +| Code | [IgnoreCaseUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/IgnoreCaseUsage/IgnoreCaseUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2009.md b/docs/articles/nunit-analyzers/NUnit2009.md index ac7325988..dc0a557b4 100644 --- a/docs/articles/nunit-analyzers/NUnit2009.md +++ b/docs/articles/nunit-analyzers/NUnit2009.md @@ -8,7 +8,7 @@ | Severity | Warning | Enabled | True | Category | Assertion -| Code | [SameActualExpectedValueAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/SameActualExpectedValue/SameActualExpectedValueAnalyzer.cs) +| Code | [SameActualExpectedValueAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/SameActualExpectedValue/SameActualExpectedValueAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2010.md b/docs/articles/nunit-analyzers/NUnit2010.md index 7939d9b77..f379441a7 100644 --- a/docs/articles/nunit-analyzers/NUnit2010.md +++ b/docs/articles/nunit-analyzers/NUnit2010.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [EqualConstraintUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ConstraintUsage/EqualConstraintUsageAnalyzer.cs) +| Code | [EqualConstraintUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ConstraintUsage/EqualConstraintUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2011.md b/docs/articles/nunit-analyzers/NUnit2011.md index f559e0ccb..a31cc04c0 100644 --- a/docs/articles/nunit-analyzers/NUnit2011.md +++ b/docs/articles/nunit-analyzers/NUnit2011.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [StringConstraintUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ConstraintUsage/StringConstraintUsageAnalyzer.cs) +| Code | [StringConstraintUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ConstraintUsage/StringConstraintUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2012.md b/docs/articles/nunit-analyzers/NUnit2012.md index cab5b6fbb..d81f668a1 100644 --- a/docs/articles/nunit-analyzers/NUnit2012.md +++ b/docs/articles/nunit-analyzers/NUnit2012.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [StringConstraintUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ConstraintUsage/StringConstraintUsageAnalyzer.cs) +| Code | [StringConstraintUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ConstraintUsage/StringConstraintUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2013.md b/docs/articles/nunit-analyzers/NUnit2013.md index c5b35e2d4..cb9d48066 100644 --- a/docs/articles/nunit-analyzers/NUnit2013.md +++ b/docs/articles/nunit-analyzers/NUnit2013.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [StringConstraintUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ConstraintUsage/StringConstraintUsageAnalyzer.cs) +| Code | [StringConstraintUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ConstraintUsage/StringConstraintUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2014.md b/docs/articles/nunit-analyzers/NUnit2014.md index dd4b54073..98456b76f 100644 --- a/docs/articles/nunit-analyzers/NUnit2014.md +++ b/docs/articles/nunit-analyzers/NUnit2014.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [SomeItemsConstraintUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ConstraintUsage/SomeItemsConstraintUsageAnalyzer.cs) +| Code | [SomeItemsConstraintUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ConstraintUsage/SomeItemsConstraintUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2015.md b/docs/articles/nunit-analyzers/NUnit2015.md index dc2dcf053..7650a6db4 100644 --- a/docs/articles/nunit-analyzers/NUnit2015.md +++ b/docs/articles/nunit-analyzers/NUnit2015.md @@ -8,7 +8,7 @@ | Severity | Warning | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2016.md b/docs/articles/nunit-analyzers/NUnit2016.md index 220b3cd3c..8ea7800f8 100644 --- a/docs/articles/nunit-analyzers/NUnit2016.md +++ b/docs/articles/nunit-analyzers/NUnit2016.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2017.md b/docs/articles/nunit-analyzers/NUnit2017.md index 3101b990f..45d689787 100644 --- a/docs/articles/nunit-analyzers/NUnit2017.md +++ b/docs/articles/nunit-analyzers/NUnit2017.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2018.md b/docs/articles/nunit-analyzers/NUnit2018.md index 2c82ba856..c1ff57587 100644 --- a/docs/articles/nunit-analyzers/NUnit2018.md +++ b/docs/articles/nunit-analyzers/NUnit2018.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2019.md b/docs/articles/nunit-analyzers/NUnit2019.md index a4b42ccef..1ea1b8c66 100644 --- a/docs/articles/nunit-analyzers/NUnit2019.md +++ b/docs/articles/nunit-analyzers/NUnit2019.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2020.md b/docs/articles/nunit-analyzers/NUnit2020.md index 93b556c30..efdef5867 100644 --- a/docs/articles/nunit-analyzers/NUnit2020.md +++ b/docs/articles/nunit-analyzers/NUnit2020.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Assertion -| Code | [SameAsIncompatibleTypesAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/SameAsIncompatibleTypes/SameAsIncompatibleTypesAnalyzer.cs) +| Code | [SameAsIncompatibleTypesAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/SameAsIncompatibleTypes/SameAsIncompatibleTypesAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2021.md b/docs/articles/nunit-analyzers/NUnit2021.md index 8d0f54bac..7e50357e4 100644 --- a/docs/articles/nunit-analyzers/NUnit2021.md +++ b/docs/articles/nunit-analyzers/NUnit2021.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Assertion -| Code | [EqualToIncompatibleTypesAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/EqualToIncompatibleTypes/EqualToIncompatibleTypesAnalyzer.cs) +| Code | [EqualToIncompatibleTypesAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/EqualToIncompatibleTypes/EqualToIncompatibleTypesAnalyzer.cs) ## Description @@ -29,6 +29,14 @@ Assert.That(foo, Is.EqualTo(bar)); There is no way that instances of types `Foo` and `Bar` could be considered equal, therefore such assertion will always fail. +Testing non-floating point values against `NaN` is also invalid, +as only floating point values can be `NaN`. + +```csharp +int actual = 5; +Assert.That(actual, Is.Not.NaN); +``` + ## How to fix violations Fix your assertion (i.e. fix actual or expected value, or choose another constraint). diff --git a/docs/articles/nunit-analyzers/NUnit2022.md b/docs/articles/nunit-analyzers/NUnit2022.md index 2ac0e3297..e2fea84c2 100644 --- a/docs/articles/nunit-analyzers/NUnit2022.md +++ b/docs/articles/nunit-analyzers/NUnit2022.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Assertion -| Code | [MissingPropertyAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/MissingProperty/MissingPropertyAnalyzer.cs) +| Code | [MissingPropertyAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/MissingProperty/MissingPropertyAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2023.md b/docs/articles/nunit-analyzers/NUnit2023.md index b9721022f..ec4e647ae 100644 --- a/docs/articles/nunit-analyzers/NUnit2023.md +++ b/docs/articles/nunit-analyzers/NUnit2023.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Assertion -| Code | [NullConstraintUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/NullConstraintUsage/NullConstraintUsageAnalyzer.cs) +| Code | [NullConstraintUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/NullConstraintUsage/NullConstraintUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2024.md b/docs/articles/nunit-analyzers/NUnit2024.md index ea4290e8d..5a2cb33b9 100644 --- a/docs/articles/nunit-analyzers/NUnit2024.md +++ b/docs/articles/nunit-analyzers/NUnit2024.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Assertion -| Code | [StringConstraintWrongActualTypeAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/StringConstraintWrongActualType/StringConstraintWrongActualTypeAnalyzer.cs) +| Code | [StringConstraintWrongActualTypeAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/StringConstraintWrongActualType/StringConstraintWrongActualTypeAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2025.md b/docs/articles/nunit-analyzers/NUnit2025.md index dc378dcfc..8d99e214f 100644 --- a/docs/articles/nunit-analyzers/NUnit2025.md +++ b/docs/articles/nunit-analyzers/NUnit2025.md @@ -8,7 +8,7 @@ | Severity | Hidden | Enabled | False | Category | Assertion -| Code | [ContainsConstraintWrongActualTypeAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ContainsConstraintWrongActualType/ContainsConstraintWrongActualTypeAnalyzer.cs) +| Code | [ContainsConstraintWrongActualTypeAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ContainsConstraintWrongActualType/ContainsConstraintWrongActualTypeAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2026.md b/docs/articles/nunit-analyzers/NUnit2026.md index 68c1b47bd..203094788 100644 --- a/docs/articles/nunit-analyzers/NUnit2026.md +++ b/docs/articles/nunit-analyzers/NUnit2026.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Assertion -| Code | [SomeItemsIncompatibleTypesAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/SomeItemsIncompatibleTypes/SomeItemsIncompatibleTypesAnalyzer.cs) +| Code | [SomeItemsIncompatibleTypesAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/SomeItemsIncompatibleTypes/SomeItemsIncompatibleTypesAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2027.md b/docs/articles/nunit-analyzers/NUnit2027.md index 23e1a7957..5e06709d4 100644 --- a/docs/articles/nunit-analyzers/NUnit2027.md +++ b/docs/articles/nunit-analyzers/NUnit2027.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2028.md b/docs/articles/nunit-analyzers/NUnit2028.md index 31f4b41ba..52ebe8613 100644 --- a/docs/articles/nunit-analyzers/NUnit2028.md +++ b/docs/articles/nunit-analyzers/NUnit2028.md @@ -9,7 +9,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2029.md b/docs/articles/nunit-analyzers/NUnit2029.md index 1bf826563..19dcab06d 100644 --- a/docs/articles/nunit-analyzers/NUnit2029.md +++ b/docs/articles/nunit-analyzers/NUnit2029.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2030.md b/docs/articles/nunit-analyzers/NUnit2030.md index e1d3f4ffa..03848a0b4 100644 --- a/docs/articles/nunit-analyzers/NUnit2030.md +++ b/docs/articles/nunit-analyzers/NUnit2030.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2031.md b/docs/articles/nunit-analyzers/NUnit2031.md index 173cc6eb4..784f04421 100644 --- a/docs/articles/nunit-analyzers/NUnit2031.md +++ b/docs/articles/nunit-analyzers/NUnit2031.md @@ -8,7 +8,7 @@ | Severity | Warning | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2032.md b/docs/articles/nunit-analyzers/NUnit2032.md index b33a5867b..650f50c56 100644 --- a/docs/articles/nunit-analyzers/NUnit2032.md +++ b/docs/articles/nunit-analyzers/NUnit2032.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2033.md b/docs/articles/nunit-analyzers/NUnit2033.md index 9540dc3a5..370d5ffde 100644 --- a/docs/articles/nunit-analyzers/NUnit2033.md +++ b/docs/articles/nunit-analyzers/NUnit2033.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2034.md b/docs/articles/nunit-analyzers/NUnit2034.md index 5c0ac1539..898dbe93e 100644 --- a/docs/articles/nunit-analyzers/NUnit2034.md +++ b/docs/articles/nunit-analyzers/NUnit2034.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2035.md b/docs/articles/nunit-analyzers/NUnit2035.md index 63be66e65..56151a9b2 100644 --- a/docs/articles/nunit-analyzers/NUnit2035.md +++ b/docs/articles/nunit-analyzers/NUnit2035.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2036.md b/docs/articles/nunit-analyzers/NUnit2036.md index 103915b77..f00495fcd 100644 --- a/docs/articles/nunit-analyzers/NUnit2036.md +++ b/docs/articles/nunit-analyzers/NUnit2036.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2037.md b/docs/articles/nunit-analyzers/NUnit2037.md index 17e5729d1..bd43c14e6 100644 --- a/docs/articles/nunit-analyzers/NUnit2037.md +++ b/docs/articles/nunit-analyzers/NUnit2037.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2038.md b/docs/articles/nunit-analyzers/NUnit2038.md index f0d841692..56f540a71 100644 --- a/docs/articles/nunit-analyzers/NUnit2038.md +++ b/docs/articles/nunit-analyzers/NUnit2038.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2039.md b/docs/articles/nunit-analyzers/NUnit2039.md index 958449568..3607fa2cd 100644 --- a/docs/articles/nunit-analyzers/NUnit2039.md +++ b/docs/articles/nunit-analyzers/NUnit2039.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2040.md b/docs/articles/nunit-analyzers/NUnit2040.md index d77440a17..b643b586b 100644 --- a/docs/articles/nunit-analyzers/NUnit2040.md +++ b/docs/articles/nunit-analyzers/NUnit2040.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Assertion -| Code | [SameAsOnValueTypesAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/SameAsOnValueTypes/SameAsOnValueTypesAnalyzer.cs) +| Code | [SameAsOnValueTypesAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/SameAsOnValueTypes/SameAsOnValueTypesAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2041.md b/docs/articles/nunit-analyzers/NUnit2041.md index 3c904beca..f24e10e73 100644 --- a/docs/articles/nunit-analyzers/NUnit2041.md +++ b/docs/articles/nunit-analyzers/NUnit2041.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Assertion -| Code | [ComparableTypesAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ComparableTypes/ComparableTypesAnalyzer.cs) +| Code | [ComparableTypesAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ComparableTypes/ComparableTypesAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2042.md b/docs/articles/nunit-analyzers/NUnit2042.md index 2ef9645b6..2a7181c46 100644 --- a/docs/articles/nunit-analyzers/NUnit2042.md +++ b/docs/articles/nunit-analyzers/NUnit2042.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ComparableTypesAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ComparableTypes/ComparableTypesAnalyzer.cs) +| Code | [ComparableTypesAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ComparableTypes/ComparableTypesAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2043.md b/docs/articles/nunit-analyzers/NUnit2043.md index dab23f2a9..554277b7c 100644 --- a/docs/articles/nunit-analyzers/NUnit2043.md +++ b/docs/articles/nunit-analyzers/NUnit2043.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ComparisonConstraintUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ConstraintUsage/ComparisonConstraintUsageAnalyzer.cs) +| Code | [ComparisonConstraintUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ConstraintUsage/ComparisonConstraintUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2044.md b/docs/articles/nunit-analyzers/NUnit2044.md index 4f6c9c164..471ff0815 100644 --- a/docs/articles/nunit-analyzers/NUnit2044.md +++ b/docs/articles/nunit-analyzers/NUnit2044.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Assertion -| Code | [DelegateRequiredAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/DelegateRequired/DelegateRequiredAnalyzer.cs) +| Code | [DelegateRequiredAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/DelegateRequired/DelegateRequiredAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2045.md b/docs/articles/nunit-analyzers/NUnit2045.md index da32d9ee0..5b60ea933 100644 --- a/docs/articles/nunit-analyzers/NUnit2045.md +++ b/docs/articles/nunit-analyzers/NUnit2045.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [UseAssertMultipleAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/UseAssertMultiple/UseAssertMultipleAnalyzer.cs) +| Code | [UseAssertMultipleAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/UseAssertMultiple/UseAssertMultipleAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2046.md b/docs/articles/nunit-analyzers/NUnit2046.md index c9f7c08a9..9a83d2288 100644 --- a/docs/articles/nunit-analyzers/NUnit2046.md +++ b/docs/articles/nunit-analyzers/NUnit2046.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [UseCollectionConstraintAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/UseCollectionConstraint/UseCollectionConstraintAnalyzer.cs) +| Code | [UseCollectionConstraintAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/UseCollectionConstraint/UseCollectionConstraintAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2047.md b/docs/articles/nunit-analyzers/NUnit2047.md index e30688a7e..c0a14da33 100644 --- a/docs/articles/nunit-analyzers/NUnit2047.md +++ b/docs/articles/nunit-analyzers/NUnit2047.md @@ -8,7 +8,7 @@ | Severity | Warning | Enabled | True | Category | Assertion -| Code | [WithinUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/WithinUsage/WithinUsageAnalyzer.cs) +| Code | [WithinUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/WithinUsage/WithinUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2048.md b/docs/articles/nunit-analyzers/NUnit2048.md index e832c711c..afaf9e423 100644 --- a/docs/articles/nunit-analyzers/NUnit2048.md +++ b/docs/articles/nunit-analyzers/NUnit2048.md @@ -8,7 +8,7 @@ | Severity | Warning | Enabled | True | Category | Assertion -| Code | [StringAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/StringAssertUsage/StringAssertUsageAnalyzer.cs) +| Code | [StringAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/StringAssertUsage/StringAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2049.md b/docs/articles/nunit-analyzers/NUnit2049.md index 2a743045c..517b755de 100644 --- a/docs/articles/nunit-analyzers/NUnit2049.md +++ b/docs/articles/nunit-analyzers/NUnit2049.md @@ -8,7 +8,7 @@ | Severity | Warning | Enabled | True | Category | Assertion -| Code | [CollectionAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/CollectionAssertUsage/CollectionAssertUsageAnalyzer.cs) +| Code | [CollectionAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/CollectionAssertUsage/CollectionAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2050.md b/docs/articles/nunit-analyzers/NUnit2050.md index 0c0457b7d..361fee227 100644 --- a/docs/articles/nunit-analyzers/NUnit2050.md +++ b/docs/articles/nunit-analyzers/NUnit2050.md @@ -8,7 +8,7 @@ | Severity | Error | Enabled | True | Category | Assertion -| Code | [UpdateStringFormatToInterpolatableStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/UpdateStringFormatToInterpolatableString/UpdateStringFormatToInterpolatableStringAnalyzer.cs) +| Code | [UpdateStringFormatToInterpolatableStringAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/UpdateStringFormatToInterpolatableString/UpdateStringFormatToInterpolatableStringAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2051.md b/docs/articles/nunit-analyzers/NUnit2051.md index 52a26912c..a2381c8da 100644 --- a/docs/articles/nunit-analyzers/NUnit2051.md +++ b/docs/articles/nunit-analyzers/NUnit2051.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2052.md b/docs/articles/nunit-analyzers/NUnit2052.md index 5c513a5ab..b215ba648 100644 --- a/docs/articles/nunit-analyzers/NUnit2052.md +++ b/docs/articles/nunit-analyzers/NUnit2052.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2053.md b/docs/articles/nunit-analyzers/NUnit2053.md index a2fc00a71..8f5b37212 100644 --- a/docs/articles/nunit-analyzers/NUnit2053.md +++ b/docs/articles/nunit-analyzers/NUnit2053.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2054.md b/docs/articles/nunit-analyzers/NUnit2054.md index bb253e38e..9c7a42d60 100644 --- a/docs/articles/nunit-analyzers/NUnit2054.md +++ b/docs/articles/nunit-analyzers/NUnit2054.md @@ -9,7 +9,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) +| Code | [ClassicModelAssertUsageAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/ClassicModelAssertUsage/ClassicModelAssertUsageAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2055.md b/docs/articles/nunit-analyzers/NUnit2055.md index 25124ba29..6aba0e3f1 100644 --- a/docs/articles/nunit-analyzers/NUnit2055.md +++ b/docs/articles/nunit-analyzers/NUnit2055.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [InstanceOfAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/InstanceOf/InstanceOfAnalyzer.cs) +| Code | [InstanceOfAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/InstanceOf/InstanceOfAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2056.md b/docs/articles/nunit-analyzers/NUnit2056.md index 47e06dede..440b63715 100644 --- a/docs/articles/nunit-analyzers/NUnit2056.md +++ b/docs/articles/nunit-analyzers/NUnit2056.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Assertion -| Code | [UseAssertEnterMultipleScopeAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/UseAssertEnterMultipleScope/UseAssertEnterMultipleScopeAnalyzer.cs) +| Code | [UseAssertEnterMultipleScopeAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/UseAssertEnterMultipleScope/UseAssertEnterMultipleScopeAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit2057.md b/docs/articles/nunit-analyzers/NUnit2057.md new file mode 100644 index 000000000..9399a9990 --- /dev/null +++ b/docs/articles/nunit-analyzers/NUnit2057.md @@ -0,0 +1,109 @@ +# NUnit2057 + +## Remove unnecessary lambda expression + +| Topic | Value +| :-- | :-- +| Id | NUnit2057 +| Severity | Info +| Enabled | True +| Category | Assertion +| Code | [DelegateUnnecessaryAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/DelegateUnnecessary/DelegateUnnecessaryAnalyzer.cs) + +## Description + +Only the argument value is needed by the Assert. + +## Motivation + +The `Assert` method will call a delegate if passed in, but that is an unnecessary overhead. + +In most cases, only the return value is needed by the assertion. + +There are two exceptions: + +1. When catching exceptions, like in: + + ```csharp + Assert.That(() => instance.Method1(null), Throws.ArgumentNullException); + ``` + +2. When a method might need to be called multiple times, like in: + + ```csharp + Assert.That(() => task.IsCompleted, Is.True.After(5).Seconds.PollEvery(100).MilliSeconds); + ``` + +Sometimes developers unnecessarily create a lambda expression for the _actual_ parameter. + +```csharp +Assert.That(() => instance.Method1(Parameters), Is.EqualTo(expected)); +``` + +Here, the call is performed inside the `Assert` and then the result is tested. +This is not necessary. The same test can be written as: + +```csharp +Assert.That(instance.Method1(Parameters), Is.EqualTo(expected)); +``` + +It is clearer both in looks and in what is being tested here. + +Sometimes the lambda is created implicitly like in: + +```csharp +Assert.That(instance.Method2, Is.EqualTo(expected)); +``` + +The fixed code should look like: + +```csharp +Assert.That(instance.Method2(), Is.EqualTo(expected)); +``` + +This clearly indicates that the `Assert` is on the return value of the method. + +## How to fix violations + +Remove the anonymous lambda creation `() =>`. +There is a code-fix that can do this for you. + + +## Configure severity + +### Via ruleset file + +Configure the severity per project, for more info see +[MSDN](https://learn.microsoft.com/en-us/visualstudio/code-quality/using-rule-sets-to-group-code-analysis-rules?view=vs-2022). + +### Via .editorconfig file + +```ini +# NUnit2057: Remove unnecessary lambda expression +dotnet_diagnostic.NUnit2057.severity = chosenSeverity +``` + +where `chosenSeverity` can be one of `none`, `silent`, `suggestion`, `warning`, or `error`. + +### Via #pragma directive + +```csharp +#pragma warning disable NUnit2057 // Remove unnecessary lambda expression +Code violating the rule here +#pragma warning restore NUnit2057 // Remove unnecessary lambda expression +``` + +Or put this at the top of the file to disable all instances. + +```csharp +#pragma warning disable NUnit2057 // Remove unnecessary lambda expression +``` + +### Via attribute `[SuppressMessage]` + +```csharp +[System.Diagnostics.CodeAnalysis.SuppressMessage("Assertion", + "NUnit2057:Remove unnecessary lambda expression", + Justification = "Reason...")] +``` + diff --git a/docs/articles/nunit-analyzers/NUnit2058.md b/docs/articles/nunit-analyzers/NUnit2058.md new file mode 100644 index 000000000..b81fbb0a2 --- /dev/null +++ b/docs/articles/nunit-analyzers/NUnit2058.md @@ -0,0 +1,75 @@ +# NUnit2058 + +## The constraint is misused + +| Topic | Value +| :-- | :-- +| Id | NUnit2058 +| Severity | Warning +| Enabled | True +| Category | Assertion +| Code | [MisusedConstraintsAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/MisusedConstraints/MisusedConstraintsAnalyzer.cs) + +## Description + +The constraint didn't take the operator precedence into account. + +## Motivation + +We have seen users wanting to test for an equivalent of `!string.IsNullOrEmpty()` using `Is.Not.Null.Or.Empty`. + +```csharp +Assert.That(name, Is.Not.Null.Or.Empty); +``` + +Because of the operator precedence this actually means `Is.Not.Null | Is.Empty`. +The `Is.Empty` part will only be tested when the item under test is `null`. +Depending on the type this either returns `false` or `throws` an `Exception`. + +## How to fix violations + +The code fix associated with this rule will convert this to test for both `Not.Null` and `Not.Empty`: + +```csharp +Assert.That(name, Is.Not.Null.And.Not.Empty); +``` + + +## Configure severity + +### Via ruleset file + +Configure the severity per project, for more info see +[MSDN](https://learn.microsoft.com/en-us/visualstudio/code-quality/using-rule-sets-to-group-code-analysis-rules?view=vs-2022). + +### Via .editorconfig file + +```ini +# NUnit2058: The constraint is misused +dotnet_diagnostic.NUnit2058.severity = chosenSeverity +``` + +where `chosenSeverity` can be one of `none`, `silent`, `suggestion`, `warning`, or `error`. + +### Via #pragma directive + +```csharp +#pragma warning disable NUnit2058 // The constraint is misused +Code violating the rule here +#pragma warning restore NUnit2058 // The constraint is misused +``` + +Or put this at the top of the file to disable all instances. + +```csharp +#pragma warning disable NUnit2058 // The constraint is misused +``` + +### Via attribute `[SuppressMessage]` + +```csharp +[System.Diagnostics.CodeAnalysis.SuppressMessage("Assertion", + "NUnit2058:The constraint is misused", + Justification = "Reason...")] +``` + diff --git a/docs/articles/nunit-analyzers/NUnit3001.md b/docs/articles/nunit-analyzers/NUnit3001.md index 36a9ff328..deb1f4aaa 100644 --- a/docs/articles/nunit-analyzers/NUnit3001.md +++ b/docs/articles/nunit-analyzers/NUnit3001.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Suppressor -| Code | [DereferencePossiblyNullReferenceSuppressor](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/DiagnosticSuppressors/DereferencePossiblyNullReferenceSuppressor.cs) +| Code | [DereferencePossiblyNullReferenceSuppressor](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/DiagnosticSuppressors/DereferencePossiblyNullReferenceSuppressor.cs) ## Description @@ -90,7 +90,7 @@ The rule has no severity, but can be disabled. ### Via ruleset file To disable the rule for a project, you need to add a -[ruleset file](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/DiagnosticSuppressors/NUnit.Analyzers.Suppressions.ruleset) +[ruleset file](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/DiagnosticSuppressors/NUnit.Analyzers.Suppressions.ruleset) ```xml diff --git a/docs/articles/nunit-analyzers/NUnit3002.md b/docs/articles/nunit-analyzers/NUnit3002.md index 1e3426bf2..dc7dcece4 100644 --- a/docs/articles/nunit-analyzers/NUnit3002.md +++ b/docs/articles/nunit-analyzers/NUnit3002.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Suppressor -| Code | [NonNullableFieldOrPropertyIsUninitializedSuppressor](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/DiagnosticSuppressors/NonNullableFieldOrPropertyIsUninitializedSuppressor.cs) +| Code | [NonNullableFieldOrPropertyIsUninitializedSuppressor](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/DiagnosticSuppressors/NonNullableFieldOrPropertyIsUninitializedSuppressor.cs) ## Description @@ -54,6 +54,21 @@ or use the null suppression operator (`!`) everywhere. Initialize the field in the `SetUp` or `OneTimeSetUp` methods. +## Specifying additional SetUp + +The analyzer can only analyze the current class and doesn't know if an `overridden` method +is called from the base class' (OneTime)SetUp method. +It is possible to specify those methods in the `.editorconfig` +and have the analyzer treat them like a SetUp method. +There are two configurations for this: + +* `dotnet_diagnostic.NUnit.additional_setup_methods` +* `dotnet_diagnostic.NUnit.additional_one_time_setup_methods` + +The configuration accepts a list of method names - separated by either comma, semicolon, or space. + +Note that this configuration is shared with the [NUnit 1032](./NUnit1032.md) analyzer. + ## Configure severity @@ -62,7 +77,7 @@ The rule has no severity, but can be disabled. ### Via ruleset file To disable the rule for a project, you need to add a -[ruleset file](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/DiagnosticSuppressors/NUnit.Analyzers.Suppressions.ruleset) +[ruleset file](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/DiagnosticSuppressors/NUnit.Analyzers.Suppressions.ruleset) ```xml diff --git a/docs/articles/nunit-analyzers/NUnit3003.md b/docs/articles/nunit-analyzers/NUnit3003.md index afbb57344..a09a49593 100644 --- a/docs/articles/nunit-analyzers/NUnit3003.md +++ b/docs/articles/nunit-analyzers/NUnit3003.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Suppressor -| Code | [AvoidUninstantiatedInternalClassSuppressor](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/DiagnosticSuppressors/AvoidUninstantiatedInternalClassSuppressor.cs) +| Code | [AvoidUninstantiatedInternalClassSuppressor](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/DiagnosticSuppressors/AvoidUninstantiatedInternalClassSuppressor.cs) ## Description @@ -30,7 +30,7 @@ The rule has no severity, but can be disabled. ### Via ruleset file To disable the rule for a project, you need to add a -[ruleset file](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/DiagnosticSuppressors/NUnit.Analyzers.Suppressions.ruleset) +[ruleset file](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/DiagnosticSuppressors/NUnit.Analyzers.Suppressions.ruleset) ```xml diff --git a/docs/articles/nunit-analyzers/NUnit3004.md b/docs/articles/nunit-analyzers/NUnit3004.md index 73cde0c86..c378dacb2 100644 --- a/docs/articles/nunit-analyzers/NUnit3004.md +++ b/docs/articles/nunit-analyzers/NUnit3004.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Suppressor -| Code | [TypesThatOwnDisposableFieldsShouldBeDisposableSuppressor](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/DiagnosticSuppressors/TypesThatOwnDisposableFieldsShouldBeDisposableSuppressor.cs) +| Code | [TypesThatOwnDisposableFieldsShouldBeDisposableSuppressor](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/DiagnosticSuppressors/TypesThatOwnDisposableFieldsShouldBeDisposableSuppressor.cs) ## Description @@ -36,7 +36,7 @@ The rule has no severity, but can be disabled. ### Via ruleset file To disable the rule for a project, you need to add a -[ruleset file](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/DiagnosticSuppressors/NUnit.Analyzers.Suppressions.ruleset) +[ruleset file](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/DiagnosticSuppressors/NUnit.Analyzers.Suppressions.ruleset) ```xml diff --git a/docs/articles/nunit-analyzers/NUnit4001.md b/docs/articles/nunit-analyzers/NUnit4001.md index 197368591..46e401e77 100644 --- a/docs/articles/nunit-analyzers/NUnit4001.md +++ b/docs/articles/nunit-analyzers/NUnit4001.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Style -| Code | [SimplifyValuesAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/SimplifyValues/SimplifyValuesAnalyzer.cs) +| Code | [SimplifyValuesAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/SimplifyValues/SimplifyValuesAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/NUnit4002.md b/docs/articles/nunit-analyzers/NUnit4002.md index cf3a9cf8b..6ade2bb11 100644 --- a/docs/articles/nunit-analyzers/NUnit4002.md +++ b/docs/articles/nunit-analyzers/NUnit4002.md @@ -8,7 +8,7 @@ | Severity | Info | Enabled | True | Category | Style -| Code | [UseSpecificConstraintAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.9.2/src/nunit.analyzers/UseSpecificConstraint/UseSpecificConstraintAnalyzer.cs) +| Code | [UseSpecificConstraintAnalyzer](https://github.com/nunit/nunit.analyzers/blob/4.12.0/src/nunit.analyzers/UseSpecificConstraint/UseSpecificConstraintAnalyzer.cs) ## Description diff --git a/docs/articles/nunit-analyzers/toc.yml b/docs/articles/nunit-analyzers/toc.yml index 87f2712db..7e9cc617a 100644 --- a/docs/articles/nunit-analyzers/toc.yml +++ b/docs/articles/nunit-analyzers/toc.yml @@ -189,6 +189,10 @@ href: NUnit2055.md - name: NUnit2056 href: NUnit2056.md + - name: NUnit2057 + href: NUnit2057.md + - name: NUnit2058 + href: NUnit2058.md - name: NUnit3001 href: NUnit3001.md - name: NUnit3002