public void AddPlaceAnimalsTest()
        {
            AnimalGenerator generator = new AnimalGenerator();
            List <Animal>   animals   = generator.GetRandomAnimals(50);
            Train           train     = new Train();

            train.AddAnimals(animals);
            train.PlaceAnimals();
        }
        public void SortAnimalListTest()
        {
            AnimalGenerator generator = new AnimalGenerator();
            List <Animal>   animals   = generator.GetRandomAnimals(50);

            animals.Sort();

            int  largestAnimalSize = (int)animals[0].Size;
            bool actual            = true;

            foreach (Animal animal in animals)
            {
                int currentAnimalSize = (int)animal.Size;
                if (currentAnimalSize > largestAnimalSize)
                {
                    actual = false;
                    break;
                }

                largestAnimalSize = currentAnimalSize;
            }

            Assert.AreEqual(true, actual);
        }