public void ThrowsArgumentNullExceptionForNullTypeToResolve() { var viewLocator = new ViewLocator(); ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => viewLocator.Register(null, typeof(FollowingNoNamingConventionView))); }
public void ShouldFailsDueToANonIViewModelType() { var viewModelManager = new ViewModelManager(); ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => viewModelManager.GetFirstOrDefaultInstance(typeof(Type))); }
public void ThrowsArgumentNullExceptionForNullInstance() { ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => new PropertyChangeUndo(null, "PropertyName", null)); }
public void ThrowsArgumentNullExceptionForNullViewModel() { ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => ViewModelCommandManager.Create(null)); }
public void ThrowsNotSupportedExceptionForNoMemberAccessExpression() { ExceptionTester.CallMethodAndExpectException <NotSupportedException>(() => PropertyHelper.GetPropertyName(() => SomeMethod())); }
public void RemoveListener_Null() { ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => LogManager.RemoveListener(null)); }
public void ThrowsArgumentNullExceptionForNullPropertyChangedArguments() { ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => PropertyChangedEventArgsExtensions.HasPropertyChanged(null, () => TestProperty)); }
public void ThrowsArgumentNullExceptionForNullFunction() { var cache = new CacheStorage <string, int>(); ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => cache.GetFromCacheOrFetch("1", null)); }
public void ThrowsArgumentNullExceptionForNullValueIfNotAllowNullValues() { var cache = new CacheStorage <string, object>(); ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => cache.Add(null, null)); }
public void ThrowsArgumentNullExceptionForNullInstance() { var service = new MementoService(); ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => service.UnregisterObject(null)); }
public void ThrowsArgumentNullExceptionForNullInstance() { ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => MessageMediatorHelper.UnsubscribeRecipient(null)); }
public void ThrowsArgumentOutOfRangeExceptionForNegativeParameter() { ExceptionTester.CallMethodAndExpectException <ArgumentOutOfRangeException>(() => new MementoService(-1)); }
public void ThrowsArgumentNullExceptionForNullAndEmptyTypeRequestInfos() { ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => new TypeRequestPath((TypeRequestInfo)null)); ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => new TypeRequestPath((TypeRequestInfo[])null)); ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => new TypeRequestPath(new TypeRequestInfo[] { })); }
public void ThrowsArgumentNullExceptionForNullResolvedType() { var viewLocator = new ViewLocator(); ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => viewLocator.Register(typeof(NoNamingConventionViewModel), null)); }
public void ThrowsArgumentNullExceptionForNullParameterInGeneric() { var exceptionService = new ExceptionService(); ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => exceptionService.Process <int>(null)); }
public void ThrowsArgumentNullExceptionForNullKey() { var cache = new CacheStorage <string, int>(); ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => cache.Remove(null)); }
public void IsListenerRegistered_Null() { ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => LogManager.IsListenerRegistered(null)); }
public void ThrowsArgumentNullExceptionForNullTypeToResolve() { var urlLocator = new UrlLocator(); ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => urlLocator.Register(null, "/Views/PersonView.xaml")); }
public void GetLogger_Null() { ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => LogManager.GetLogger(null)); }
public void ThrowsArgumentNullExceptionForNullViewType() { var urlLocator = new UrlLocator(); ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => urlLocator.ResolveUrl(null)); }
public void ThrowsArgumentNullExceptionForNullPropertyExpressionArguments() { var propertyChangedEventArgs = new PropertyChangedEventArgs("TestProperty"); ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => propertyChangedEventArgs.HasPropertyChanged((Expression <Func <string> >)null)); }
public void ThrowsArgumentNullExceptionForNullType() { ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => new TypeRequestInfo(null)); }
public void ThrowsArgumentNullExceptionForNullExpression() { ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => PropertyHelper.GetPropertyName <int>(null)); }
public void ThrowsArgumentExceptionIfTheListIsEmpty() { ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => FluentValidatorToCatelValidatorAdapter.From(new List <Type>())); }
public void ThrowsArgumentNullExceptionForNullViewModel() { var vmManager = new ViewModelManager(); ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => vmManager.UnregisterAllModels(null)); }
public void ThrowsArgumentNullExceptionForNullParameter() { var exceptionService = new ExceptionService(); ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => exceptionService.HandleException(null)); }
public void UnregisterViewModelInstance_Null() { var manager = new ViewModelManager(); ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => manager.UnregisterViewModelInstance(null)); }
public void ReturnsArgumentNullException() { var exceptionService = new ExceptionService(); ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => exceptionService.IsExceptionRegistered(null)); }
public void ThrowsArgumentNullExceptionForNullMessage() { ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => new BusinessRuleValidationResult(ValidationResultType.Error, null)); }
public void ThrowsCircularDependencyExceptionIfThereAreRepetitions() { var typeArray = CreateInvalidPath(); ExceptionTester.CallMethodAndExpectException <CircularDependencyException>(() => MapRequestInfoArrayIntoPath(typeArray)); }