public void EqualsWithUnequalObjectTypes() { var first = new GroupImportMap( "c", new InsertVertex(1), new List <ImportRegistrationId> { new ImportRegistrationId(typeof(string), 0, "aa") }); var second = new object(); Assert.IsFalse(first.Equals(second)); }
public void EqualsWithEqualObjects() { var first = new GroupImportMap( "c", new InsertVertex(1), new List <ImportRegistrationId> { new ImportRegistrationId(typeof(string), 0, "aa") }); object second = new GroupImportMap( "c", new InsertVertex(2), new List <ImportRegistrationId> { new ImportRegistrationId(typeof(string), 1, "aa") }); Assert.IsTrue(first.Equals(second)); }