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

github.com/mono/guiunit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Risi <timothy.risi@xamarin.com>2016-12-07 22:00:32 +0300
committerChris Hamons <chris.hamons@xamarin.com>2016-12-07 22:00:32 +0300
commit54f599934319558e391d4c6b89ad7e85d4f95366 (patch)
treec5dc218f2976f1182832a313b4f79050d02deab1
parent0ae60f903606c78e862b41134070c79e4c7ed959 (diff)
Lost the 'bool' in 'bool double' in Numerics.AreEqual (#12)
-rwxr-xr-xsrc/framework/Constraints/Numerics.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/framework/Constraints/Numerics.cs b/src/framework/Constraints/Numerics.cs
index 3fe43b4..7c13718 100755
--- a/src/framework/Constraints/Numerics.cs
+++ b/src/framework/Constraints/Numerics.cs
@@ -100,7 +100,7 @@ namespace NUnit.Framework.Constraints
/// <returns>True if the values are equal</returns>
public static bool AreEqual(object expected, object actual, ref Tolerance tolerance)
{
- _double = (expected is double || actual is double);
+ bool _double = (expected is double || actual is double);
if (!_double && (IntPtr.Size == 8))
_double = (expected.GetType () == nfloatType || actual.GetType () == nfloatType);