diff --git a/X10D.Tests/src/Core/RandomTests.cs b/X10D.Tests/src/Core/RandomTests.cs index 94b3b38..9824c01 100644 --- a/X10D.Tests/src/Core/RandomTests.cs +++ b/X10D.Tests/src/Core/RandomTests.cs @@ -226,7 +226,9 @@ public class RandomTests Random? random = null; Assert.ThrowsException(() => random!.NextSingle(10)); Assert.ThrowsException(() => random!.NextSingle(0, 10)); +#if !NET6_0_OR_GREATER Assert.ThrowsException(() => random!.NextSingle()); +#endif } [TestMethod]