AK.F1.Timing.Model.Driver.QuallyTimesModelTest.changes_to_the_qually_time_properties_raise_the_property_changed_event C# (CSharp) 메소드

changes_to_the_qually_time_properties_raise_the_property_changed_event() 개인적인 메소드

        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));
        }