AK.F1.Timing.Model.Driver.QuallyTimesModelTest.changes_to_the_qually_time_properties_raise_the_property_changed_event C# (CSharp) Method

changes_to_the_qually_time_properties_raise_the_property_changed_event() private method

        public void changes_to_the_qually_time_properties_raise_the_property_changed_event()
        {
            var model = new QuallyTimesModel();
            var observer = model.CreateObserver();

            model.SetTime(1, TimeSpan.FromSeconds(1d));
            Assert.True(observer.HasChanged(x => x.Q1));

            model.SetTime(2, TimeSpan.FromSeconds(2d));
            Assert.True(observer.HasChanged(x => x.Q2));

            model.SetTime(3, TimeSpan.FromSeconds(3d));
            Assert.True(observer.HasChanged(x => x.Q3));
        }