Manfred Brands
Manfred Brands
Given the following constructed example: ```csharp [Test] public void Test() { object? possibleNull = GetNext(); Assert.NotNull(possibleNull); DoNothing((object)possibleNull); } private static object? GetNext() => new object(); private void DoNothing(T obj) where...
The `TestCaseUsageAnalyzer` warns if the test method doesn't have the same number of parameters. The `TestCaseSourceUsesStringAnalyzer` only test if the parameters for the test source method match. Either create a...
Still in draft. Code compiles, switching works between SDK 5 and 6.
The VSIX project only allows the analyzers to run in Visual Studio, which means that CLI build would not use them. They have been [removed ](https://github.com/dotnet/roslyn-analyzers/issues/3314#issuecomment-747598315) from the VS extension...
See https://github.com/nunit/nunit/issues/3736 The nunit syntax allows: ``` [Test] public void RecordsEqualsMismatch() { var a = new Data(1, 1.0); var b = new Data(1, 1.1); Assert.That(a, Is.EqualTo(b).Within(0.2), $"{a} != {b}"); }...
Fixes #4440
I had several PRs failing on MacOs with:  As the comment above the timeouts says the tests are much faster locally: ``` // The following tests are each running...
Whilst adding the nunit.analyzer to the framework tests, some `Assert.Multiple` tests were failing. ```csharp ITestResult result = TestBuilder.RunTestCase(typeof(AssertMultipleFixture), methodName); Assert.That(result.StackTrace, Is.Not.Null); // Added by me to show failure: Passes Assert.Multiple(()...
There is documentation for a [`CollectionContainsConstraint`](https://docs.nunit.org/articles/nunit/writing-tests/constraints/CollectionContainsConstraint.html) but no such class consists in the NUnit source code. The documentation shows examples of code that internally call: `new SomeItemsConstraint(new EqualConstraint(expected));` That is...