예제 #1
0
        public void AddInterestedViewModelInstance_ViewModelForNotExistingInterestedInViewModel()
        {
            var manager = new ViewModelManager();

            var interestedViewModel = new InterestedViewModel();

            manager.AddInterestedViewModelInstance(typeof(InterestingViewModel), interestedViewModel);
        }
예제 #2
0
        public void AddInterestedViewModelInstance_SecondArgumentNull()
        {
            var manager = new ViewModelManager();

            ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => manager.AddInterestedViewModelInstance(typeof(InterestingViewModel), null));
        }
예제 #3
0
        public void AddInterestedViewModelInstance_FirstArgumentNull()
        {
            var manager = new ViewModelManager();

            ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => manager.AddInterestedViewModelInstance(null, null));
        }
예제 #4
0
        public void RemoveInterestedViewModelInstance_ViewModelForNotExistingInterestedInViewModel()
        {
            var manager = new ViewModelManager();

            var interestedViewModel = new InterestedViewModel();

            manager.AddInterestedViewModelInstance(typeof(InterestingViewModel), interestedViewModel);
            manager.RemoveInterestedViewModelInstance(typeof(InterestingViewModel), interestedViewModel);
        }
예제 #5
0
        public void AddInterestedViewModelInstance_SecondArgumentNull()
        {
            var manager = new ViewModelManager();

            ExceptionTester.CallMethodAndExpectException<ArgumentNullException>(() => manager.AddInterestedViewModelInstance(typeof(InterestingViewModel), null));
        }
예제 #6
0
        public void AddInterestedViewModelInstance_FirstArgumentNull()
        {
            var manager = new ViewModelManager();

            ExceptionTester.CallMethodAndExpectException<ArgumentNullException>(() => manager.AddInterestedViewModelInstance(null, null));
        }