Beispiel #1
0
		public void GetDifferentHashCodeTest()
		{
			Panda a = new Panda("Gosho", "*****@*****.**", GenderType.Male);
			Panda b = new Panda("Gosho", "*****@*****.**", GenderType.Male);

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

			if (a.GetHashCode() == b.GetHashCode())
			{
				Assert.Fail();
			}
		}