Example #1
0
        public void AddTime_AddThirdDog_ThenReturnsFourthDogInLineup(Division division,
                                                                     Heat heat, Dog dog1, Dog dog2, Dog dog3, Dog dog4, Fault fault, double time)
        {
            division.RacingClass = RacingClass.Regular;
            heat.AddDogToLineup(division, dog1, dog2, dog3, dog4);
            fault = null;

            var vut = heat.AddTime(dog3, Position.Third, time, fault, division);

            vut.Dog.ShouldBe(dog4);
        }
Example #2
0
        public void AddTime_WhenSecondDog_ThenReturnsSecondPosition(Division division,
                                                                    Heat heat, Dog dog1, Dog dog2, Dog dog3, Dog dog4, Fault fault, double time)
        {
            division.RacingClass = RacingClass.Regular;
            heat.AddDogToLineup(division, dog1, dog2, dog3, dog4);
            fault = null;

            var vut = heat.AddTime(dog2, Position.Second, time, fault, division);

            vut.Position.ShouldBe(Position.Third);
        }