AK.F1.Timing.Messages.Driver.PostedTimeTest.ctor_throws_if_time_is_negative C# (CSharp) Method

ctor_throws_if_time_is_negative() private method

private ctor_throws_if_time_is_negative ( ) : void
return void
        public void ctor_throws_if_time_is_negative()
        {
            Assert.DoesNotThrow(() => { new PostedTime(TimeSpan.Zero, PostedTimeType.Normal, 1); });
            Assert.Throws<ArgumentOutOfRangeException>(() => { new PostedTime(TimeSpan.FromMilliseconds(-1), PostedTimeType.Normal, 1); });
        }