AK.F1.Timing.Live.LiveDriverTest.can_determine_if_the_driver_is_in_the_pits C# (CSharp) Method

can_determine_if_the_driver_is_in_the_pits() private method

private can_determine_if_the_driver_is_in_the_pits ( ) : void
return void
        public void can_determine_if_the_driver_is_in_the_pits()
        {
            var driver = new LiveDriver(1);

            driver.ChangeStatus(DriverStatus.InPits);
            Assert.True(driver.IsInPits);

            driver.ChangeStatus(DriverStatus.OnTrack);
            Assert.False(driver.IsInPits);
            driver.ChangeStatus(DriverStatus.Out);
            Assert.False(driver.IsInPits);
            driver.ChangeStatus(DriverStatus.Retired);
            Assert.False(driver.IsInPits);
            driver.ChangeStatus(DriverStatus.Stopped);
            Assert.False(driver.IsInPits);
        }