public FarmShould() { Stable stable1 = new Stable(3, 3); stable1.PutHorseInStable(new Horse()); Stable stable2 = new Stable(3, 3); stable2.PutHorseInStable(new Horse()); Stable stable3 = new Stable(3, 3); stable3.PutHorseInStable(new Horse()); _sut = new Farm { Stables = new List <Stable>() { stable1, stable2, stable3 } }; }
public void ThrowExceptionWhenStableIsFull() { Assert.Throws <StableFullException>(() => _sut.PutHorseInStable(new Horse())); }
public StableShould() { _sut = new Stable(3, 3); _sut.PutHorseInStable(new Horse()); }