From aa45f27f23338326019ff6cda886b79e361abad6 Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Fri, 11 Nov 2016 16:00:15 +0000 Subject: [PATCH] Fixed mistaken test asserts when comparing objects overloaded equal operator. --- tests/Common/Common.Tests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Common/Common.Tests.cs b/tests/Common/Common.Tests.cs index 7a5db7e8..f03c94ce 100644 --- a/tests/Common/Common.Tests.cs +++ b/tests/Common/Common.Tests.cs @@ -522,7 +522,7 @@ public class CommonTests : GeneratorTestFixture { using (var foo = new Foo { A = 5, B = 5.5f }) { - Assert.IsTrue(foo == foo); + Assert.IsTrue(foo.Equals(foo)); using (var notEqual = new Foo { A = 5, B = 5.6f }) { Assert.IsTrue(notEqual != foo); @@ -530,7 +530,7 @@ public class CommonTests : GeneratorTestFixture Assert.IsTrue(foo != null); } var bar = new Bar { A = 5, B = 5.5f }; - Assert.IsTrue(bar == bar); + Assert.IsTrue(bar.Equals(bar)); Assert.IsFalse(new Bar { A = 5, B = 5.6f } == bar); using (var differentConstOverloads = new DifferentConstOverloads()) {