public void UnitMc_Equals() { Multicombination nullMc = null; Multicombination c438a = new Multicombination(4, 3, 8); Multicombination c438b = new Multicombination(4, 3, 8); Multicombination c439 = new Multicombination(4, 3, 9); Multicombination c6 = new Multicombination(8, 6, 4); Assert.IsFalse(c438a.Equals(nullMc)); Assert.IsTrue(c438a.Equals(c438b)); Assert.IsFalse(c438a.Equals(c439)); Assert.IsFalse(c438a.Equals(c6)); }
public void UnitMc_oEquals() { Multicombination mcNull = null; Multicombination mc438a = new Multicombination(4, 3, 8); Multicombination mc438b = new Multicombination(4, 3, 8); Multicombination mc439 = new Multicombination(4, 3, 9); Multicombination mc864 = new Multicombination(8, 6, 4); object j0 = (object)mcNull; object j438b = (object)mc438b; object j439 = (object)mc439; object j864 = (object)mc864; Assert.IsFalse(mc438a.Equals(j0)); Assert.IsTrue(mc438a.Equals(j438b)); Assert.IsFalse(mc438a.Equals(j439)); Assert.IsFalse(mc438a.Equals(j864)); }