Пример #1
0
        public void Add_WhenAddMaleBear_ReturnsTrue()
        {
            cage.Add(bear);

            Assert.NotEmpty(cage.Components);
            Assert.NotEmpty(cage.GetAnimals());
            Assert.Equal(bear, cage.Components[0]);
        }
Пример #2
0
 public void Add_WhenBearAlreadyInCage_ReturnsArgumentException()
 {
     bearMaleCage.Add(maleBear);
     Assert.Throws <TypeAccessException>(() => bearMaleCage.Add(maleBear));
 }