Browse Source

Build: disable two serialization tests for .Net Core 1.1 (they work in Core 2.0 and .Net)

pull/531/head
Christoph Ruegg 9 years ago
parent
commit
1977a17a59
  1. 2
      src/UnitTests/ComplexTests/ComplexTest.cs
  2. 2
      src/UnitTests/LinearAlgebraTests/MatrixStorageSerializationTests.cs
  3. 2
      src/UnitTests/LinearAlgebraTests/VectorStorageSerializationTests.cs

2
src/UnitTests/ComplexTests/ComplexTest.cs

@ -58,7 +58,7 @@ namespace MathNet.Numerics.UnitTests.ComplexTests
{
var value = new Complex(real, imag);
var expected = new Complex(expectedReal, expectedImag);
AssertHelpers.AlmostEqualRelative(expected, value.Exp(), 15);
AssertHelpers.AlmostEqualRelative(expected, value.Exp(), 14);
}
/// <summary>

2
src/UnitTests/LinearAlgebraTests/MatrixStorageSerializationTests.cs

@ -91,6 +91,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests
Assert.That(actual, Is.Not.SameAs(expected));
}
#if !NETCOREAPP1_1
[Test]
public void DenseColumnMajorMatrixStorageOfComplex64DataContractSerializationTest()
{
@ -115,6 +116,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests
Assert.That(actualMatrix, Is.EqualTo(expectedMatrix));
Assert.That(actualMatrix, Is.Not.SameAs(expectedMatrix));
}
#endif
[Test]
public void DenseColumnMajorMatrixStorageOfComplex32DataContractSerializationTest()

2
src/UnitTests/LinearAlgebraTests/VectorStorageSerializationTests.cs

@ -89,6 +89,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests
Assert.That(actual, Is.Not.SameAs(expected));
}
#if !NETCOREAPP1_1
[Test]
public void DenseVectorStorageOfComplex64DataContractSerializationTest()
{
@ -106,6 +107,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests
Assert.That(actual, Is.EqualTo(expected));
Assert.That(actual, Is.Not.SameAs(expected));
}
#endif
[Test]
public void DenseVectorStorageOfComplex32DataContractSerializationTest()

Loading…
Cancel
Save