public void LoadChildrenViewModelChangesCurrentViewModel()
        {
            var childrenViewModel = new ChildViewModelStub();
            _utilityViewModel.LoadChildrenViewModel(childrenViewModel);

            Assert.AreEqual(childrenViewModel, _mainViewModel.CurrentViewModel);
        }
예제 #2
0
        public void LoadingSpecifiedViewModelSetsItAsCurrentViewModel()
        {
            var calendarViewModel = new ChildViewModelStub();

            _viewModel.LoadModel(calendarViewModel);

            Assert.AreEqual(calendarViewModel, _viewModel.CurrentViewModel);
        }