Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStephen Toub <stoub@microsoft.com>2017-04-20 14:47:54 +0300
committerGitHub <noreply@github.com>2017-04-20 14:47:54 +0300
commit5fb87460f948d44be3bfdbbbc2b497d49ec6c892 (patch)
treed7d4af987dd99814a5be1275cb7fa060cd6ab7cc /src
parent40174b0eef4d1251614a2147380a4878aed3dace (diff)
parent12610f2c698354694fb8214089819ddaf4f8e2cc (diff)
Merge pull request #18658 from hseok-oh/fix_18601
Modify System.Numerics.Vectors unittest
Diffstat (limited to 'src')
-rw-r--r--src/System.Numerics.Vectors/tests/Vector2Tests.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/System.Numerics.Vectors/tests/Vector2Tests.cs b/src/System.Numerics.Vectors/tests/Vector2Tests.cs
index c6a77578f0..c14299100d 100644
--- a/src/System.Numerics.Vectors/tests/Vector2Tests.cs
+++ b/src/System.Numerics.Vectors/tests/Vector2Tests.cs
@@ -488,7 +488,7 @@ namespace System.Numerics.Tests
Vector2 actual;
actual = Vector2.TransformNormal(v, m);
- Assert.Equal(expected, actual);
+ Assert.True(MathHelper.Equal(expected, actual), "Vector2f.Tranform did not return the expected value.");
}
// A test for TransformNormal (Vector2f, Matrix3x2)
@@ -504,7 +504,7 @@ namespace System.Numerics.Tests
Vector2 actual;
actual = Vector2.TransformNormal(v, m);
- Assert.Equal(expected, actual);
+ Assert.True(MathHelper.Equal(expected, actual), "Vector2f.Transform did not return the expected value.");
}
// A test for Transform (Vector2f, Quaternion)