From 8f23735f1863f9a68efe9fb0ee47cf15059bf17a Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Mon, 30 Mar 2026 21:59:20 -0500 Subject: [PATCH] tests: fix null literal assignment issue with implicit conversion --- tests/StevanFreeborn.Options.Tests/OptionTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/StevanFreeborn.Options.Tests/OptionTests.cs b/tests/StevanFreeborn.Options.Tests/OptionTests.cs index 58e46fe..06e0641 100644 --- a/tests/StevanFreeborn.Options.Tests/OptionTests.cs +++ b/tests/StevanFreeborn.Options.Tests/OptionTests.cs @@ -66,7 +66,8 @@ public class OptionTests [Test] public async Task ImplicitConversion_FromNull_ItShouldReturnNoneOption() { - Option option = null!; + string? nullString = null; + Option option = nullString; await Assert.That(option.IsNone).IsTrue(); }