public void Return_True_On_IsIdentical_When_Identity_Is_Equal() { var x = new GenericComposition { GnMwHs = SubstanceIndication.H, GnNkPk = 1, GsKode = 2 }; var y = new GenericComposition { GnMwHs = SubstanceIndication.H, GnNkPk = 1, GsKode = 2 }; Assert.IsTrue(x.IsIdentical(y)); }
public void Return_False_On_IsIdentical_When_GsKode_Is_Different() { var x = new GenericComposition { GnMwHs = SubstanceIndication.H, GnNkPk = 1, GsKode = 2 }; var y = new GenericComposition { GnMwHs = SubstanceIndication.H, GnNkPk = 1, GsKode = 3 }; Assert.IsFalse(x.IsIdentical(y)); }