public void AddStartTime_WhenDivisionNotReRunStartAndFault_ThenReturnsSameDog(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 = Fault.BadStart; var vut = heat.AddStartTime(dog1, time, fault, division); vut.Dog.ShouldBe(dog1); }
public void AddStartTime_WhenDivisionNotRerunStartAndFault_ThenReturnsFirstPosition(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 = Fault.BadStart; division.RacingClass = RacingClass.Open; var vut = heat.AddStartTime(dog1, time, fault, division); vut.Position.ShouldBe(Position.First); }