tests: fix null literal assignment issue with implicit conversion
This commit is contained in:
1 parent
bb5e8d6a4d
commit
8f23735f18
1 file changed
+2
-1
@@ -66,7 +66,8 @@ public class OptionTests
|
||||
[Test]
|
||||
public async Task ImplicitConversion_FromNull_ItShouldReturnNoneOption()
|
||||
{
|
||||
Option<string> option = null!;
|
||||
string? nullString = null;
|
||||
Option<string> option = nullString;
|
||||
|
||||
await Assert.That(option.IsNone).IsTrue();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user