示例#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));
        }