Browse Source

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
pull/525/head
Ignas Anikevicius 9 years ago
parent
commit
b655e148ef
  1. 2
      src/UnitTests/Random/RandomSerializationTests.cs

2
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]

Loading…
Cancel
Save