Skip to content

Migrate NUnit assertions to the constraint model in preparation of the NUnit 4 upgrade #1032

Migrate NUnit assertions to the constraint model in preparation of the NUnit 4 upgrade

Migrate NUnit assertions to the constraint model in preparation of the NUnit 4 upgrade #1032

Triggered via pull request August 22, 2024 04:36
Status Failure
Total duration 1m 43s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors
Windows: src/TestHarness/R.cs#L103
The TestCaseSource provides type 'NUnit.Framework.Interfaces.ITestCaseData', but the Test method expects type 'string' for parameter 'testName' (https://github.com/nunit/nunit.analyzers/tree/master/documentation/NUnit1030.md)
Windows: src/Tests/SynchronizedStorage/ServiceFabricStorageSessionTests.cs#L115
Consider using the constraint model, Assert.That(actual, Is.EqualTo(expected)), instead of the classic model, ClassicAssert.AreEqual(expected, actual) (https://github.com/nunit/nunit.analyzers/tree/master/documentation/NUnit2005.md)
Windows: src/Tests/SynchronizedStorage/ServiceFabricStorageSessionTests.cs#L37
Consider using the constraint model, Assert.That(actual, Is.EqualTo(expected)), instead of the classic model, ClassicAssert.AreEqual(expected, actual) (https://github.com/nunit/nunit.analyzers/tree/master/documentation/NUnit2005.md)
Windows: src/TestHarness/R.cs#L103
The TestCaseSource provides type 'NUnit.Framework.Interfaces.ITestCaseData', but the Test method expects type 'string' for parameter 'testName' (https://github.com/nunit/nunit.analyzers/tree/master/documentation/NUnit1030.md)
Windows: src/Tests/SynchronizedStorage/ServiceFabricStorageSessionTests.cs#L115
Consider using the constraint model, Assert.That(actual, Is.EqualTo(expected)), instead of the classic model, ClassicAssert.AreEqual(expected, actual) (https://github.com/nunit/nunit.analyzers/tree/master/documentation/NUnit2005.md)
Windows: src/Tests/SynchronizedStorage/ServiceFabricStorageSessionTests.cs#L37
Consider using the constraint model, Assert.That(actual, Is.EqualTo(expected)), instead of the classic model, ClassicAssert.AreEqual(expected, actual) (https://github.com/nunit/nunit.analyzers/tree/master/documentation/NUnit2005.md)
Windows
Process completed with exit code 1.