public void AddInterestedViewModelInstance_ViewModelForNotExistingInterestedInViewModel() { var manager = new ViewModelManager(); var interestedViewModel = new InterestedViewModel(); manager.AddInterestedViewModelInstance(typeof(InterestingViewModel), interestedViewModel); }
public void AddInterestedViewModelInstance_SecondArgumentNull() { var manager = new ViewModelManager(); ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => manager.AddInterestedViewModelInstance(typeof(InterestingViewModel), null)); }
public void AddInterestedViewModelInstance_FirstArgumentNull() { var manager = new ViewModelManager(); ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => manager.AddInterestedViewModelInstance(null, null)); }
public void RemoveInterestedViewModelInstance_ViewModelForNotExistingInterestedInViewModel() { var manager = new ViewModelManager(); var interestedViewModel = new InterestedViewModel(); manager.AddInterestedViewModelInstance(typeof(InterestingViewModel), interestedViewModel); manager.RemoveInterestedViewModelInstance(typeof(InterestingViewModel), interestedViewModel); }
public void AddInterestedViewModelInstance_SecondArgumentNull() { var manager = new ViewModelManager(); ExceptionTester.CallMethodAndExpectException<ArgumentNullException>(() => manager.AddInterestedViewModelInstance(typeof(InterestingViewModel), null)); }
public void AddInterestedViewModelInstance_FirstArgumentNull() { var manager = new ViewModelManager(); ExceptionTester.CallMethodAndExpectException<ArgumentNullException>(() => manager.AddInterestedViewModelInstance(null, null)); }