Пример #1
0
        public void changes_to_the_last_message_received_on_property_raise_the_property_changed_event()
        {
            var model = new FeedModel();
            var observer = model.CreateObserver();

            model.Process(new SetStreamValidityMessage(false));
            Assert.True(observer.HasChanged(x => x.LastMessageReceivedOn));
        }
Пример #2
0
        public void changes_to_the_keyframe_property_raise_the_property_changed_event()
        {
            var model = new FeedModel();
            var observer = model.CreateObserver();

            model.Process(new SetKeyframeMessage(1));
            Assert.True(observer.HasChanged(x => x.KeyframeNumber));
        }
Пример #3
0
        public void changes_to_the_copyright_property_raise_the_property_changed_event()
        {
            var model = new FeedModel();
            var observer = model.CreateObserver();

            model.Process(new SetCopyrightMessage("1"));
            Assert.True(observer.HasChanged(x => x.Copyright));
        }
Пример #4
0
        public void changes_to_the_ping_interval_property_raise_the_property_changed_event()
        {
            var model = new FeedModel();
            var observer = model.CreateObserver();

            model.Process(new SetPingIntervalMessage(TimeSpan.FromSeconds(1D)));
            Assert.True(observer.HasChanged(x => x.PingInterval));
        }
Пример #5
0
        public void changes_to_the_message_count_property_raise_the_property_changed_event()
        {
            var model = new FeedModel();
            var observer = model.CreateObserver();

            model.Process(new SetStreamValidityMessage(false));
            Assert.True(observer.HasChanged(x => x.MessageCount));
        }
Пример #6
0
        public void changes_to_the_timestamp_property_raise_the_property_changed_event()
        {
            var model = new FeedModel();
            var observer = model.CreateObserver();

            model.Process(new SetStreamTimestampMessage());
            Assert.True(observer.HasChanged(x => x.Timestamp));
        }