public void Equals_TableOperation_Works() { var sut = new InsertOperation("test", "1234") { Item = testObject }; var other = new InsertOperation("test", "1234") { Item = testObject }; var notother = new DeleteOperation("test", "1234"); Assert.True(sut.Equals(other)); Assert.False(sut.Equals(notother)); }
public void Equals_Object_Works() { var sut = new InsertOperation("test", "1234") { Item = testObject }; var other = new InsertOperation("test", "1234") { Item = testObject }; var notother = new DeleteOperation("test", "1234"); object notoperation = new(); Assert.True(sut.Equals((object)other)); Assert.False(sut.Equals((object)notother)); Assert.False(sut.Equals(notoperation)); }