Browse Source

Tests: disable 3 tests not supported in .Net Core 1.1

spatial
Christoph Ruegg 9 years ago
parent
commit
5e4ab3a94b
  1. 2
      src/UnitTests/ComplexTests/Complex32Test.TextHandling.cs
  2. 2
      src/UnitTests/ComplexTests/ComplexTest.TextHandling.cs
  3. 11
      src/UnitTests/Random/RandomSerializationTests.cs

2
src/UnitTests/ComplexTests/Complex32Test.TextHandling.cs

@ -247,6 +247,7 @@ namespace MathNet.Numerics.UnitTests.ComplexTests
Assert.AreEqual(float.MinValue, z.Imaginary, "E3"); Assert.AreEqual(float.MinValue, z.Imaginary, "E3");
} }
#if !NETCOREAPP1_1
/// <summary> /// <summary>
/// Try parse can handle symbols with a culture. /// Try parse can handle symbols with a culture.
/// </summary> /// </summary>
@ -291,6 +292,7 @@ namespace MathNet.Numerics.UnitTests.ComplexTests
Assert.AreEqual(float.MaxValue, z.Real, "E2"); Assert.AreEqual(float.MaxValue, z.Real, "E2");
Assert.AreEqual(float.MinValue, z.Imaginary, "E3"); Assert.AreEqual(float.MinValue, z.Imaginary, "E3");
} }
#endif
/// <summary> /// <summary>
/// Try parse returns false when given bad value with invariant. /// Try parse returns false when given bad value with invariant.

2
src/UnitTests/ComplexTests/ComplexTest.TextHandling.cs

@ -150,6 +150,7 @@ namespace MathNet.Numerics.UnitTests.ComplexTests
Assert.AreEqual(double.MinValue, z.Imaginary, "E3"); Assert.AreEqual(double.MinValue, z.Imaginary, "E3");
} }
#if !NETCOREAPP1_1
/// <summary> /// <summary>
/// Try parse can handle symbols with a culture. /// Try parse can handle symbols with a culture.
/// </summary> /// </summary>
@ -196,6 +197,7 @@ namespace MathNet.Numerics.UnitTests.ComplexTests
Assert.AreEqual(double.MaxValue, z.Real, "E2"); Assert.AreEqual(double.MaxValue, z.Real, "E2");
Assert.AreEqual(double.MinValue, z.Imaginary, "E3"); Assert.AreEqual(double.MinValue, z.Imaginary, "E3");
} }
#endif
/// <summary> /// <summary>
/// Try parse returns <c>false</c> when given bad value with invariant. /// Try parse returns <c>false</c> when given bad value with invariant.

11
src/UnitTests/Random/RandomSerializationTests.cs

@ -27,17 +27,16 @@
// OTHER DEALINGS IN THE SOFTWARE. // OTHER DEALINGS IN THE SOFTWARE.
// </copyright> // </copyright>
#if !NETCOREAPP1_1
using System; using System;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using MathNet.Numerics.Random; using MathNet.Numerics.Random;
using NUnit.Framework; using NUnit.Framework;
#if !NETCOREAPP1_1
using System.Runtime.Serialization.Formatters.Binary;
#endif
namespace MathNet.Numerics.UnitTests.Random namespace MathNet.Numerics.UnitTests.Random
{ {
[TestFixture] [TestFixture]
@ -70,7 +69,6 @@ namespace MathNet.Numerics.UnitTests.Random
Assert.That(actual.NextDoubleSequence().Take(10).ToArray(), Is.EqualTo(expected.NextDoubleSequence().Take(10).ToArray()).AsCollection); Assert.That(actual.NextDoubleSequence().Take(10).ToArray(), Is.EqualTo(expected.NextDoubleSequence().Take(10).ToArray()).AsCollection);
} }
#if !NETCOREAPP1_1
[Test] [Test]
[TestCase(typeof(MersenneTwister))] [TestCase(typeof(MersenneTwister))]
[TestCase(typeof(Mcg59))] [TestCase(typeof(Mcg59))]
@ -97,6 +95,7 @@ namespace MathNet.Numerics.UnitTests.Random
Assert.That(actual.GetType(), Is.EqualTo(randomType)); Assert.That(actual.GetType(), Is.EqualTo(randomType));
Assert.That(actual.NextDoubleSequence().Take(10).ToArray(), Is.EqualTo(expected.NextDoubleSequence().Take(10).ToArray()).AsCollection); Assert.That(actual.NextDoubleSequence().Take(10).ToArray(), Is.EqualTo(expected.NextDoubleSequence().Take(10).ToArray()).AsCollection);
} }
#endif
} }
} }
#endif

Loading…
Cancel
Save