Example #1
0
        public void Test2()
        {
            var dblHumpedCamell = new DblHumpedCamell();
            var fastCamell      = new FastCamell();
            var boots           = new Boots();
            var kent            = new Kentavr();
            var groundRacers    = new List <GroundTransport>()
            {
                boots, kent, fastCamell, dblHumpedCamell
            };
            var groundRace   = new GroundRace(1000, groundRacers);
            var groundWinner = groundRace.GetWinner();

            Assert.AreEqual(fastCamell, groundWinner);
        }
Example #2
0
        public void Test3()
        {
            var broom           = new Broom();
            var plane           = new Plane();
            var stupa           = new Stupa();
            var dblHumpedCamell = new DblHumpedCamell();
            var fastCamell      = new FastCamell();
            var boots           = new Boots();
            var kent            = new Kentavr();
            var racers          = new List <Transport>()
            {
                boots, kent, fastCamell, dblHumpedCamell, broom, plane, stupa
            };
            var commonRace = new Race(10000, racers);
            var winner     = commonRace.GetWinner();

            Assert.AreEqual(broom, winner);
        }