Example #1
0
        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
                }
            };
        }
Example #2
0
 public void ThrowExceptionWhenStableIsFull()
 {
     Assert.Throws <StableFullException>(() => _sut.PutHorseInStable(new Horse()));
 }
Example #3
0
 public StableShould()
 {
     _sut = new Stable(3, 3);
     _sut.PutHorseInStable(new Horse());
 }