public void Invitation_Equals_CheckIEquitableImplemenetationIgnoresReferenceEquals() { //Act Invitation first = new Invitation(); Invitation second = new Invitation(); Player p1 = new Player("Alex", "9C6109F9-5320-4411-9D1C-FA13D1CEC544", string.Empty); Player p2 = new Player("Alex", "9C6109F9-5320-4411-9D1C-FA13D1CEC544", string.Empty); //Arrange first.From = p1; first.To = p2; first.SentDate = new DateTime(2012, 12, 9, 10, 0, 0); second.From = p1; second.To = p2; second.SentDate = new DateTime(2012, 12, 9, 10, 0, 0); //Assert Assert.IsTrue(first.Equals(second)); }