From 12b2764a03bdb48238d5737e92576b05e9ded1f2 Mon Sep 17 00:00:00 2001 From: Kyle Ratti Date: Tue, 30 Apr 2024 13:41:02 -0400 Subject: [PATCH] chore: add NUnit Analyzers --- Base.Tests/Base.Tests.csproj | 4 ++++ Base.Tests/Structures/NullableExtensionTests.cs | 3 +++ 2 files changed, 7 insertions(+) diff --git a/Base.Tests/Base.Tests.csproj b/Base.Tests/Base.Tests.csproj index 4a92390..ebac844 100644 --- a/Base.Tests/Base.Tests.csproj +++ b/Base.Tests/Base.Tests.csproj @@ -12,6 +12,10 @@ + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + all diff --git a/Base.Tests/Structures/NullableExtensionTests.cs b/Base.Tests/Structures/NullableExtensionTests.cs index d18e9d4..0a62a63 100644 --- a/Base.Tests/Structures/NullableExtensionTests.cs +++ b/Base.Tests/Structures/NullableExtensionTests.cs @@ -32,6 +32,9 @@ public class NullableExtensionTests [Test] public void TestNullableReferenceOfValueAsMaybe() { + // ReSharper disable once SuggestVarOrType_BuiltInTypes + // ReSharper disable once ConvertToConstant.Local + // ReSharper disable once VariableCanBeNotNullable string? nullableString = "banana"; var result = nullableString.AsMaybe();