diff --git a/X10D.Tests/src/Core/StringTests.cs b/X10D.Tests/src/Core/StringTests.cs index c2cb52a..b940465 100644 --- a/X10D.Tests/src/Core/StringTests.cs +++ b/X10D.Tests/src/Core/StringTests.cs @@ -224,13 +224,13 @@ namespace X10D.Tests.Core string resultC = inputC.WithEmptyAlternative(alternative); string resultD = inputD.WithEmptyAlternative(alternative); - Assert.ThrowsException(() => ((string?)null).WithEmptyAlternative(null!)); - Assert.AreEqual(resultA, inputA); Assert.AreEqual(resultB, inputB); Assert.AreEqual(resultBWithWhitespace, alternative); Assert.AreEqual(resultC, alternative); Assert.AreEqual(resultD, alternative); + Assert.AreEqual(alternative, ((string?)null).WithEmptyAlternative(alternative)); + Assert.AreEqual(alternative, ((string?)null).WithWhiteSpaceAlternative(alternative)); } } }