nunit.analyzers
nunit.analyzers copied to clipboard
Roslyn analyzers for writing unit tests with NUnit
The analyzer should verify: * That tests are only marked with `Theory` if they accept one or more arguments * For each argument in the method one or more of...
We should warn about problems with TestCaseSource within parametrized textfixture. See nunit/nunit#320 for more context.
Avoid the problems with 0 as step and Overflow exceptions. See the discussion in nunit/nunit#472 (note that the code has changed recently, but we should still capture this compile-time instead...
Happens that things are dumped when debugging tests and then forgotten. Reasons to remove: 1. They slow down tests. 2. Pollute CI logs.
Had the idea after reading https://github.com/nunit/nunit/commit/6be37033ea65f15bd7267aa841a1abb47f6353da#commitcomment-30439403. If TimeoutAttribute is used on a test that is allowed to run in parallel, it can exacerbate the unreliable nature of timing-based tests when...
The analyzer should also handle the following (from nunit\src\NUnitFramework\tests\Internal\DeduceTypeArgsFromArgs.cs). Currently, it gives a warning for `5`, `The value of the argument at position 0 cannot be assigned to the argument...
The analyzer should also handle the following (from \nunit\src\NUnitFramework\tests\Internal\TypeParameterUsedWithTestMethod.cs). Currently, it gives a warning `The value of the argument at position 0 cannot be assigned to the argument x`. ```csharp...
Bumps [Microsoft.CodeAnalysis.CSharp.CodeStyle](https://github.com/dotnet/roslyn) from 3.11.0 to 4.3.1. Release notes Sourced from Microsoft.CodeAnalysis.CSharp.CodeStyle's releases. .NET 7.0 Preview 5 Release .NET 7.0 Preview 2 Release .NET 7.0 Preview 1 Release .NET 6.0.1 Release...
Bumps [Microsoft.CodeAnalysis.CSharp.Workspaces](https://github.com/dotnet/roslyn) from 3.11.0 to 4.3.1. Release notes Sourced from Microsoft.CodeAnalysis.CSharp.Workspaces's releases. .NET 7.0 Preview 5 Release .NET 7.0 Preview 2 Release .NET 7.0 Preview 1 Release .NET 6.0.1 Release...