mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-22 23:58:48 +00:00
Fix null input for WithAlternative test
This commit is contained in:
parent
85becd2415
commit
af9449935f
@ -224,13 +224,13 @@ namespace X10D.Tests.Core
|
|||||||
string resultC = inputC.WithEmptyAlternative(alternative);
|
string resultC = inputC.WithEmptyAlternative(alternative);
|
||||||
string resultD = inputD.WithEmptyAlternative(alternative);
|
string resultD = inputD.WithEmptyAlternative(alternative);
|
||||||
|
|
||||||
Assert.ThrowsException<ArgumentNullException>(() => ((string?)null).WithEmptyAlternative(null!));
|
|
||||||
|
|
||||||
Assert.AreEqual(resultA, inputA);
|
Assert.AreEqual(resultA, inputA);
|
||||||
Assert.AreEqual(resultB, inputB);
|
Assert.AreEqual(resultB, inputB);
|
||||||
Assert.AreEqual(resultBWithWhitespace, alternative);
|
Assert.AreEqual(resultBWithWhitespace, alternative);
|
||||||
Assert.AreEqual(resultC, alternative);
|
Assert.AreEqual(resultC, alternative);
|
||||||
Assert.AreEqual(resultD, alternative);
|
Assert.AreEqual(resultD, alternative);
|
||||||
|
Assert.AreEqual(alternative, ((string?)null).WithEmptyAlternative(alternative));
|
||||||
|
Assert.AreEqual(alternative, ((string?)null).WithWhiteSpaceAlternative(alternative));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user