public void Dispose() { var vm = new Test2VM(); vm.Disposed += OnTestDisposed; vm.Dispose(); Assert.AreEqual(1, vm.DisposeCount); }
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; }