Exemplo n.º 1
0
        public void Test_Add_Entrant()
        {
            Race    race    = new Race();
            Entrant entrant = new Entrant(race, new Horse {
                Name = "Horse 1", Skill = 10
            }, 1);

            race.AddEntrant(entrant.Horse);

            Assert.AreEqual(1, race.Entrants.Count);
        }