public void NotifyPropertyChanged() { _propertiesChanged = new List<string>(); var viewModel = new MockViewModel(); var propertyName = Guid.NewGuid().ToString(); viewModel.PropertyChanged += PropertyChanged; viewModel.TriggerPropertyChanged(propertyName); viewModel.PropertyChanged -= PropertyChanged; Assert.AreEqual(1, _propertiesChanged.Count); Assert.IsTrue(_propertiesChanged.Contains(propertyName)); }