nunit.analyzers
nunit.analyzers copied to clipboard
Roslyn analyzers for writing unit tests with NUnit
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...
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...
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....
 `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...
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...