diff options
author | Jeff Ames | 2008-05-14 05:11:23 +0000 |
---|---|---|
committer | Jeff Ames | 2008-05-14 05:11:23 +0000 |
commit | c995d60d37032db3198b8496e186aa7a892dc7a8 (patch) | |
tree | 826147e66f61c812897d9b0acdb16ebfeb30d4d3 /OpenSim/Tests/Common/DoubleToleranceConstraint.cs | |
parent | * Added 3 warnings in response to the warnings. Adam, read the warnings. (diff) | |
download | opensim-SC_OLD-c995d60d37032db3198b8496e186aa7a892dc7a8.zip opensim-SC_OLD-c995d60d37032db3198b8496e186aa7a892dc7a8.tar.gz opensim-SC_OLD-c995d60d37032db3198b8496e186aa7a892dc7a8.tar.bz2 opensim-SC_OLD-c995d60d37032db3198b8496e186aa7a892dc7a8.tar.xz |
Formatting cleanup.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Tests/Common/DoubleToleranceConstraint.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Tests/Common/DoubleToleranceConstraint.cs b/OpenSim/Tests/Common/DoubleToleranceConstraint.cs index 3363c54..a766549 100644 --- a/OpenSim/Tests/Common/DoubleToleranceConstraint.cs +++ b/OpenSim/Tests/Common/DoubleToleranceConstraint.cs | |||
@@ -53,14 +53,14 @@ namespace OpenSim.Tests.Common | |||
53 | { | 53 | { |
54 | throw new ArgumentException("Constraint cannot be used upon null values."); | 54 | throw new ArgumentException("Constraint cannot be used upon null values."); |
55 | } | 55 | } |
56 | if( valueToBeTested.GetType() != typeof(double)) | 56 | if (valueToBeTested.GetType() != typeof(double)) |
57 | { | 57 | { |
58 | throw new ArgumentException("Constraint cannot be used upon non double-values."); | 58 | throw new ArgumentException("Constraint cannot be used upon non double-values."); |
59 | } | 59 | } |
60 | 60 | ||
61 | _valueToBeTested = (double)valueToBeTested; | 61 | _valueToBeTested = (double)valueToBeTested; |
62 | 62 | ||
63 | return IsWithinDoubleConstraint(_valueToBeTested, _baseValue ); | 63 | return IsWithinDoubleConstraint(_valueToBeTested, _baseValue); |
64 | } | 64 | } |
65 | 65 | ||
66 | public override void WriteDescriptionTo(MessageWriter writer) | 66 | public override void WriteDescriptionTo(MessageWriter writer) |