diff options
author | UbitUmarov | 2015-11-16 18:50:15 +0000 |
---|---|---|
committer | UbitUmarov | 2015-11-16 18:50:15 +0000 |
commit | fd2784a037408c3c36367973109bd9ee6703af8f (patch) | |
tree | e87b2446b6dd4b87c673e62fb8cf0efe75c51388 /OpenSim/Framework/Tests/UtilTest.cs | |
parent | work around some 'tests' error: contents of link folders are no longer sent (diff) | |
download | opensim-SC-fd2784a037408c3c36367973109bd9ee6703af8f.zip opensim-SC-fd2784a037408c3c36367973109bd9ee6703af8f.tar.gz opensim-SC-fd2784a037408c3c36367973109bd9ee6703af8f.tar.bz2 opensim-SC-fd2784a037408c3c36367973109bd9ee6703af8f.tar.xz |
work around some 'tests' error: normalization of <0,0,0> no longer causes argument exception
Diffstat (limited to 'OpenSim/Framework/Tests/UtilTest.cs')
-rw-r--r-- | OpenSim/Framework/Tests/UtilTest.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Framework/Tests/UtilTest.cs b/OpenSim/Framework/Tests/UtilTest.cs index cfe3139..2b08c29 100644 --- a/OpenSim/Framework/Tests/UtilTest.cs +++ b/OpenSim/Framework/Tests/UtilTest.cs | |||
@@ -59,12 +59,12 @@ namespace OpenSim.Framework.Tests | |||
59 | Assert.That(Util.GetMagnitude(v2), | 59 | Assert.That(Util.GetMagnitude(v2), |
60 | new DoubleToleranceConstraint(expectedMagnitude, lowPrecisionTolerance), | 60 | new DoubleToleranceConstraint(expectedMagnitude, lowPrecisionTolerance), |
61 | "Magnitude of vector was incorrect."); | 61 | "Magnitude of vector was incorrect."); |
62 | 62 | /* | |
63 | TestDelegate d = delegate() { Util.GetNormalizedVector(v1); }; | 63 | TestDelegate d = delegate() { Util.GetNormalizedVector(v1); }; |
64 | bool causesArgumentException = TestHelpers.AssertThisDelegateCausesArgumentException(d); | 64 | bool causesArgumentException = TestHelpers.AssertThisDelegateCausesArgumentException(d); |
65 | Assert.That(causesArgumentException, Is.True, | 65 | Assert.That(causesArgumentException, Is.True, |
66 | "Getting magnitude of null vector did not cause argument exception."); | 66 | "Getting magnitude of null vector did not cause argument exception."); |
67 | 67 | */ | |
68 | Vector3 expectedNormalizedVector = new Vector3(.577f, .577f, .577f); | 68 | Vector3 expectedNormalizedVector = new Vector3(.577f, .577f, .577f); |
69 | double expectedNormalizedMagnitude = 1; | 69 | double expectedNormalizedMagnitude = 1; |
70 | Vector3 normalizedVector = Util.GetNormalizedVector(v2); | 70 | Vector3 normalizedVector = Util.GetNormalizedVector(v2); |