public void FindCatTestTrue() { Administration admin = new Administration(); Cat a = new Cat(1, new SimpleDate(14, 12, 1990), "Kitty", "bla"); admin.Add(a); Assert.AreEqual(a, admin.FindAnimal(a.ChipRegistrationNumber)); }
public void FindDogTestTrue() { Administration admin = new Administration(); Dog a = new Dog(1, new SimpleDate(14, 12, 1990), "Kitty", new SimpleDate(03, 03, 2013)); admin.Add(a); Assert.AreEqual(a, admin.FindAnimal(a.ChipRegistrationNumber)); }
public void FindAnimalNotExisting() { Administration admin = new Administration(); Assert.AreEqual(null, admin.FindAnimal(0)); }