From a9b6e1befe92c12a58a6505326118d03d02c18d6 Mon Sep 17 00:00:00 2001 From: Christoph Ruegg Date: Sun, 15 Jan 2017 17:01:28 +0100 Subject: [PATCH] Random: disable binary formatter tests on portable builds --- 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 f455cb20..d948c4ed 100644 --- a/src/UnitTests/Random/RandomSerializationTests.cs +++ b/src/UnitTests/Random/RandomSerializationTests.cs @@ -67,6 +67,7 @@ namespace MathNet.Numerics.UnitTests.Random Assert.That(actual.NextDoubleSequence().Take(10).ToArray(), Is.EqualTo(expected.NextDoubleSequence().Take(10).ToArray()).AsCollection); } +#if !PORTABLE [Test] [TestCase(typeof(MersenneTwister))] [TestCase(typeof(Mcg59))] @@ -93,5 +94,6 @@ 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 } }