public void IsNotEqualTo_ClientsNotEqual_Passes() { var client1 = new DerrivedClient(); var client2 = new DerrivedClient(); client1.Name = "player1"; client1.SomeGenericProperty = client1.Name; client2.Name = "player2"; client2.SomeGenericProperty = client2.Name; Assert.That(client1.Equals(client2), Is.False); Assert.That(client1, Is.Not.EqualTo(client2)); }
public void IsNotEqualTo_ClientsAreEqual_DoesntPassAnymore_ProblemFixed_ReturnsFalse() { var client1 = new DerrivedClient(); var client2 = new DerrivedClient(); client1.Name = "player1"; client1.SomeGenericProperty = client1.Name; client2.Name = client1.Name; client2.SomeGenericProperty = client1.Name; Assert.That(client1.Equals(client2), Is.True); Assert.That(client1, Is.Not.Not.EqualTo(client2)); }