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()) {