AK.F1.Timing.Model.Driver.LapHistoryEntryTest.ctor_throws_if_all_times_are_null C# (CSharp) Method

ctor_throws_if_all_times_are_null() private method

private ctor_throws_if_all_times_are_null ( ) : void
return void
        public void ctor_throws_if_all_times_are_null()
        {
            var time = new PostedTime(TimeSpan.FromSeconds(54.6), PostedTimeType.Normal, 1);

            Assert.DoesNotThrow(() => new LapHistoryEntry(time, null, null, null));
            Assert.DoesNotThrow(() => new LapHistoryEntry(null, time, null, null));
            Assert.DoesNotThrow(() => new LapHistoryEntry(null, null, time, null));
            Assert.DoesNotThrow(() => new LapHistoryEntry(null, null, null, time));

            Assert.Throws<ArgumentNullException>(() => new LapHistoryEntry(null, null, null, null));
        }