public void Add_WhenAddMaleBear_ReturnsTrue() { cage.Add(bear); Assert.NotEmpty(cage.Components); Assert.NotEmpty(cage.GetAnimals()); Assert.Equal(bear, cage.Components[0]); }
public void Add_WhenBearAlreadyInCage_ReturnsArgumentException() { bearMaleCage.Add(maleBear); Assert.Throws <TypeAccessException>(() => bearMaleCage.Add(maleBear)); }