示例#1
0
        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));
        }
示例#2
0
        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));
        }
示例#3
0
        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));
        }
示例#4
0
        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));
        }