public void IsContainerCanContainsComponent_WhenCanNotContains_ReturnsFalse()
 {
     bear.Male = Lab2Zoo.Models.Enums.MaleMode.Female;
     Assert.False(femaleCage.IsContainerCanContainsComponent(maleCage));
     Assert.False(maleCage.IsContainerCanContainsComponent(bear));
 }
Example #2
0
 public void IsContainerCanContainsComponent_WhenComponentIsCage_ReturnsTrue()
 {
     Assert.True(zoo.IsContainerCanContainsComponent(bearCageFactory.CreateCage() as BearCage));
     Assert.True(bearMaleCage.IsContainerCanContainsComponent(bearMaleCageFactory.CreateCage() as BearMaleCage));
 }