nunit.analyzers icon indicating copy to clipboard operation
nunit.analyzers copied to clipboard

Roslyn analyzers for writing unit tests with NUnit

Results 114 nunit.analyzers issues
Sort by recently updated
recently updated
newest added

Bumps [Microsoft.CodeAnalysis.CSharp.Workspaces](https://github.com/dotnet/roslyn) from 3.11.0 to 4.3.0. 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...

dependencies

Bumps [Microsoft.CodeAnalysis.CSharp.CodeStyle](https://github.com/dotnet/roslyn) from 3.11.0 to 4.3.0. 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...

dependencies

Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.2.0 to 17.3.1. Release notes Sourced from Microsoft.NET.Test.Sdk's releases. v17.3.1 See the release notes here. v17.3.0 See the release notes here. v17.3.0-preview-20220612-01 See the release notes here....

dependencies

![image](https://user-images.githubusercontent.com/22863275/179375235-e1dd7a58-a677-4439-9721-70a8a553632f.png) `SquareTools.Parse` returns `Square`, (`enum Square : ushort`). The test passes, as expected, despite NUnit's analysis. Even though there is only one type in the whole solution named Square, I...

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...

We should reuse the logic for testing whether the value of a `TestCaseAttribute` matches the argument of the test method to also have effect for `ValuesAttribute`. The following will currently...

improvement

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 following code works as intended, but is banned with NUnit2044. ``` C# var list = new List(); Task.Run(async () => { await Task.Delay(500); list.Add(0); }); Assert.That(list, Has.Count.EqualTo(1).After(1000, 1)); ```...

StrongInject is gaining the ability to build for both Roslyn 3.8 and 4.0 in the same package: https://github.com/YairHalberstadt/stronginject/pull/181. Another package that does the same thing is https://github.com/reactiveui/refit. A similar (but...

improvement