예제 #1
0
        public void WhenArgumentIsNull_ShouldDoNothing(string testValue)
        {
            var    model  = new DemoModel();
            string result = null;

            using
            (
                model.CreatePropertyObservable(testValue, model => "TEST")
                .Subscribe(value => result = value)
            )
            {
                model.RaisePropertyChanged(testValue);
            }

            Assert.Null(result);
        }
예제 #2
0
        public void WhenArgumentIsNotEmpty_ShouldRaiseEvent(string testValue)
        {
            var model = new DemoModel();

            Assert.PropertyChanged(model, testValue, () => model.RaisePropertyChanged(testValue));
        }