C# Class MyTested.AspNetCore.Mvc.Utilities.Validators.InvocationValidator

Validator class containing invocation validation logic.
Mostrar archivo Open project: ivaylokenov/MyTested.AspNetCore.Mvc Class Usage Examples

Public Methods

Method Description
CheckForException ( Exception exception, string exceptionMessagePrefix ) : void

Validated whether a non-null exception is provided and throws InvocationAssertionException with proper message.

CheckForNullException ( Exception exception, string exceptionMessagePrefix ) : void

Private Methods

Method Description
FormatExceptionMessage ( string message ) : string

Method Details

CheckForException() public static method

Validated whether a non-null exception is provided and throws InvocationAssertionException with proper message.
public static CheckForException ( Exception exception, string exceptionMessagePrefix ) : void
exception Exception Exception to be validated.
exceptionMessagePrefix string Prefix to put in front of the exception message.
return void

CheckForNullException() public static method

public static CheckForNullException ( Exception exception, string exceptionMessagePrefix ) : void
exception Exception
exceptionMessagePrefix string
return void