public void WagonFit() { Wagon wagon = new Wagon(); Animal animal1 = new Animal(1, Diet.Carnivoor); Animal animal2 = new Animal(3, Diet.Herbivoor); wagon.CheckIfAnimalFits(animal1); Assert.IsTrue(wagon.CheckIfAnimalFits(animal2)); }
public void SmallCarnivoorBigHerbivoorInOneWagon() { Wagon wagon = new Wagon(); Animal animal1 = new Animal(1, Diet.Carnivoor); Animal animal2 = new Animal(5, Diet.Carnivoor); wagon.CheckIfAnimalFits(animal1); Assert.IsTrue(wagon.CheckIfAnimalFits(animal2)); }
public void BigCarnivoormediumHerbivoorInOneWagon() { Wagon wagon = new Wagon(); Animal animal1 = new Animal(5, Diet.Carnivoor); Animal animal2 = new Animal(3, Diet.Herbivoor); wagon.CheckIfAnimalFits(animal1); Assert.IsFalse(wagon.CheckIfAnimalFits(animal2)); }
public void SmallCarnivoormediumHerbivoorInOneWagon() { Animal animal1 = new Animal(1, Diet.Carnivoor); Animal animal2 = new Animal(3, Diet.Herbivoor); Wagon wagon = new Wagon(animal1); Assert.IsTrue(wagon.CheckIfAnimalFits(animal2)); }