From b655e148eff031aeebec65e6f48c6d2261c161d6 Mon Sep 17 00:00:00 2001 From: Ignas Anikevicius Date: Mon, 21 Aug 2017 22:47:03 +0300 Subject: [PATCH] Disable RandomSerializationTests for netstandard. Apparently, the serialization support for `System.Random` is not present in `netstandard1.3` and even though it was added at some point, it is again removed from the future `netstandard` versions. See the following PR for more info: https://github.com/dotnet/coreclr/pull/11765 --- src/UnitTests/Random/RandomSerializationTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/UnitTests/Random/RandomSerializationTests.cs b/src/UnitTests/Random/RandomSerializationTests.cs index 777ba8e8..d81241bd 100644 --- a/src/UnitTests/Random/RandomSerializationTests.cs +++ b/src/UnitTests/Random/RandomSerializationTests.cs @@ -42,6 +42,7 @@ namespace MathNet.Numerics.UnitTests.Random [TestFixture] public class RandomSerializationTests { +#if !NETSTANDARD [Test] [TestCase(typeof(MersenneTwister))] [TestCase(typeof(Mcg59))] @@ -68,6 +69,7 @@ namespace MathNet.Numerics.UnitTests.Random Assert.That(actual.GetType(), Is.EqualTo(randomType)); Assert.That(actual.NextDoubleSequence().Take(10).ToArray(), Is.EqualTo(expected.NextDoubleSequence().Take(10).ToArray()).AsCollection); } +#endif #if !PORTABLE && !NETSTANDARD [Test]