예제 #1
0
        public void ShouldRaisePropertyChangedEventForDisplayMember()
        {
            var fired = _viewModel.IsPropertyChangedFired(
                () => _viewModel.DisplayMember = "Changed",
                nameof(_viewModel.DisplayMember));

            Assert.True(fired);
        }
예제 #2
0
        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);
        }