public void Models_With_Default_Identifiers_Are_Unequal() { var ref1 = new ValidModelType(); var ref2 = new ValidModelType(); Assert.AreNotEqual(ref1, ref2); }
public void Same_Reference_Is_Equal() { var ref1 = new ValidModelType(); var ref2 = ref1; Assert.AreEqual(ref1, ref2); }
public void Models_With_Equal_Non_Default_Identifiers_Are_Eequal() { var ref1 = new ValidModelType { Id = 1 }; var ref2 = new ValidModelType { Id = 1 }; Assert.AreEqual(ref1, ref2); }