mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-22 19:48:46 +00:00
fix(test): assert ArgumentNullException only for .NET < 6
This commit is contained in:
parent
9985652c40
commit
262f191799
@ -226,7 +226,9 @@ public class RandomTests
|
||||
Random? random = null;
|
||||
Assert.ThrowsException<ArgumentNullException>(() => random!.NextSingle(10));
|
||||
Assert.ThrowsException<ArgumentNullException>(() => random!.NextSingle(0, 10));
|
||||
#if !NET6_0_OR_GREATER
|
||||
Assert.ThrowsException<ArgumentNullException>(() => random!.NextSingle());
|
||||
#endif
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
|
Loading…
Reference in New Issue
Block a user