Exemple #1
0
        public void Dispose()
        {
            var vm = new Test2VM();

            vm.Disposed += OnTestDisposed;
            vm.Dispose();
            Assert.AreEqual(1, vm.DisposeCount);
        }
Exemple #2
0
        public void PropertyChanged()
        {
            var vm = new Test2VM();

            vm.PropertyChanged += OnTest2PropertyChanged;
            vm.TestProperty     = "test";
            Assert.AreEqual("TestProperty", vm.TestProperty2);
            Assert.AreEqual(1, vm.PropertyChangedCount);
            vm.PropertyChanged -= OnTest2PropertyChanged;
        }