Esempio n. 1
0
        public void TestCowObjectConstuction()
        {
            _cow = new Cow();
            this.animalManager = new AnimalManager <AnimalBase>();

            Assert.That(AnimalTypeEnum.Cow, Is.EqualTo(_cow.Type));
            Assert.That("cow", Is.EqualTo(_cow.AnimalName));
            Assert.That("moo", Is.EqualTo(_cow.AnimalSound));
            Assert.That(this.animalManager.GetAnimals(), Contains.Substring(_cow.GetGetAnimalNameAndSound()));
        }