Beispiel #1
0
        public void MessagePropertyValueUpdated()
        {
            var vm = new ViewSwitchViewModel(_regionManagerMock.Object, _messageServiceMock.Object);

            _messageServiceMock.Verify(x => x.GetMessage(), Times.Once);

            Assert.Equal(MessageServiceDefaultMessage, vm.Message);
        }
Beispiel #2
0
        public void MessageINotifyPropertyChangedCalled()
        {
            var vm = new ViewSwitchViewModel(_regionManagerMock.Object, _messageServiceMock.Object);

            Assert.PropertyChanged(vm, nameof(vm.Message), () => vm.Message = "Changed");
        }