public void GetDifferentHashCodeTest() { Panda a = new Panda("Gosho", "*****@*****.**", GenderType.Male); Panda b = new Panda("Gosho", "*****@*****.**", GenderType.Male); if (a.GetHashCode() != b.GetHashCode()) { Assert.Fail(); } }
public void GetHashCodeTest() { Panda a = new Panda("Gosho", "*****@*****.**", GenderType.Male); Panda b = new Panda("Penka", "*****@*****.**", GenderType.Female); if (a.GetHashCode() == b.GetHashCode()) { Assert.Fail(); } }