public void AddingAnimalTest() { PenViewModel penViewModel = new PenViewModel(); penViewModel.RemoveAllAnimals(); penViewModel.AddChicken(); Assert.AreEqual(penViewModel.Pen.GetAnimals().Count, 1); }
public void DeletingAnimalTest() { PenViewModel penViewModel = new PenViewModel(); penViewModel.RemoveAllAnimals(); penViewModel.AddChicken(); penViewModel.SelectedAnimal = penViewModel.Pen.GetAnimal(0); penViewModel.RemoveAnimal(); Assert.AreEqual(penViewModel.Pen.GetAnimals().Count, 0); }
public void Execute(object parameter) { _ViewModel.RemoveAllAnimals(); }