public void ShouldRaisePropertyChangedEventForDisplayMember() { var fired = _viewModel.IsPropertyChangedFired( () => _viewModel.DisplayMember = "Changed", nameof(_viewModel.DisplayMember)); Assert.True(fired); }
public void DisplayMember_When_Set_Should_Raise_PropertyChangedEvent_For_DisplayMember() { //Act var fired = _viewModel.IsPropertyChangedFired(() => { _viewModel.DisplayMember = "AnyOtherString"; }, nameof(_viewModel.DisplayMember)); //Assert Assert.True(fired); }