Exemplo n.º 1
0
        public void OnPropertyChangedTest()
        {
            bool propertChangedWasRised = false;

            var vm = new ViewModelMock();

            vm.PropertyChanged += (s, a) =>
            {
                Assert.AreEqual("Test", a.PropertyName);
                propertChangedWasRised = true;
            };

            vm.OnPropertyChanged("Test", "before", "after");

            Assert.IsTrue(propertChangedWasRised);
        }
Exemplo n.º 2
0
        public void OnPropertyChanged_NoEventsTest()
        {
            var vm = new ViewModelMock();

            vm.OnPropertyChanged("Test", "before", "after");
        }