public TaskShouldlyThrowMessage(object expected, string exceptionMessage, Func <string> customMessage) { ShouldlyAssertionContext = new ShouldThrowAssertionContext(expected, null, exceptionMessage, isAsync: true); if (customMessage != null) { ShouldlyAssertionContext.CustomMessage = customMessage(); } }
public TaskShouldlyThrowMessage(object expected, [InstantHandle] Func <string> customMessage) { ShouldlyAssertionContext = new ShouldThrowAssertionContext(expected, isAsync: true); if (customMessage != null) { ShouldlyAssertionContext.CustomMessage = customMessage(); } }
public TaskShouldlyThrowMessage(object?expected, string?customMessage, [CallerMemberName] string shouldlyMethod = null !) { ShouldlyAssertionContext = new ShouldThrowAssertionContext(expected, isAsync: true, shouldlyMethod: shouldlyMethod); if (customMessage != null) { ShouldlyAssertionContext.CustomMessage = customMessage; } }
public TaskShouldlyThrowMessage(object expected, [InstantHandle] Func <string> customMessage, [CallerMemberName] string shouldlyMethod = null) { ShouldlyAssertionContext = new ShouldThrowAssertionContext(expected, isAsync: true, shouldlyMethod: shouldlyMethod); if (customMessage != null) { ShouldlyAssertionContext.CustomMessage = customMessage(); } }
public AsyncShouldlyThrowShouldlyMessage(Type exception, [InstantHandle] Func <string> customMessage, StackTrace stackTrace) { ShouldlyAssertionContext = new ShouldThrowAssertionContext(exception, stackTrace: stackTrace, isAsync: true); if (customMessage != null) { ShouldlyAssertionContext.CustomMessage = customMessage(); } }
public AsyncShouldlyThrowShouldlyMessage(Type exception, string?customMessage, StackTrace stackTrace, [CallerMemberName] string shouldlyMethod = null !) { ShouldlyAssertionContext = new ShouldThrowAssertionContext(exception, stackTrace: stackTrace, isAsync: true, shouldlyMethod: shouldlyMethod); if (customMessage != null) { ShouldlyAssertionContext.CustomMessage = customMessage; } }
public ShouldlyThrowMessage(object expected, string exceptionMessage, Func <string> customMessage, [CallerMemberName] string shouldlyMethod = null) { ShouldlyAssertionContext = new ShouldThrowAssertionContext(expected, null, exceptionMessage, shouldlyMethod: shouldlyMethod); if (customMessage != null) { ShouldlyAssertionContext.CustomMessage = customMessage(); } }
public AsyncShouldlyNotThrowShouldlyMessage(Type exception, [InstantHandle] Func <string> customMessage, StackTrace stackTrace, string exceptionMessage, [CallerMemberName] string shouldlyMethod = null) { ShouldlyAssertionContext = new ShouldThrowAssertionContext(exception, stackTrace: stackTrace, isAsync: true, shouldlyMethod: shouldlyMethod, actual: null, exceptionMessage: exceptionMessage); if (customMessage != null) { ShouldlyAssertionContext.CustomMessage = customMessage(); } }
public TaskShouldlyThrowMessage(object?expected, object?actual, [InstantHandle] Func <string?>?customMessage, [CallerMemberName] string shouldlyMethod = null !) { ShouldlyAssertionContext = new ShouldThrowAssertionContext(expected, actual, isAsync: true, shouldlyMethod: shouldlyMethod) { HasRelevantActual = true }; if (customMessage != null) { ShouldlyAssertionContext.CustomMessage = customMessage(); } }
public TaskShouldlyThrowMessage(object expected, object actual, [InstantHandle] Func <string> customMessage) { ShouldlyAssertionContext = new ShouldThrowAssertionContext(expected, actual, isAsync: true) { HasRelevantActual = true }; if (customMessage != null) { ShouldlyAssertionContext.CustomMessage = customMessage(); } }
public AsyncShouldlyThrowShouldlyMessage(Type expected, Type actual, [InstantHandle] Func <string> customMessage, StackTrace stackTrace) { ShouldlyAssertionContext = new ShouldThrowAssertionContext(expected, actual, stackTrace: stackTrace, isAsync: true) { HasRelevantActual = true }; if (customMessage != null) { ShouldlyAssertionContext.CustomMessage = customMessage(); } }
public ShouldlyThrowMessage(object?expected, object?actual, string?customMessage, [CallerMemberName] string shouldlyMethod = null !) { ShouldlyAssertionContext = new ShouldThrowAssertionContext(expected, actual, shouldlyMethod: shouldlyMethod) { HasRelevantActual = true }; if (customMessage != null) { ShouldlyAssertionContext.CustomMessage = customMessage; } }
public AsyncShouldlyThrowShouldlyMessage(Type exception, [InstantHandle] Func<string> customMessage, StackTrace stackTrace) { ShouldlyAssertionContext = new ShouldThrowAssertionContext(exception, stackTrace: stackTrace, isAsync: true); if (customMessage != null) ShouldlyAssertionContext.CustomMessage = customMessage(); }
public TaskShouldlyThrowMessage(object expected, [InstantHandle] Func<string> customMessage, [CallerMemberName] string shouldlyMethod = null) { ShouldlyAssertionContext = new ShouldThrowAssertionContext(expected, isAsync: true, shouldlyMethod: shouldlyMethod); if (customMessage != null) ShouldlyAssertionContext.CustomMessage = customMessage(); }
public ShouldlyThrowMessage(object expected, object actual, [InstantHandle] Func<string> customMessage, [CallerMemberName] string shouldlyMethod = null) { ShouldlyAssertionContext = new ShouldThrowAssertionContext(expected, actual, shouldlyMethod: shouldlyMethod) { HasRelevantActual = true }; if (customMessage != null) ShouldlyAssertionContext.CustomMessage = customMessage(); }
public ShouldlyThrowMessage(object expected, string exceptionMessage, Func<string> customMessage, [CallerMemberName] string shouldlyMethod = null) { ShouldlyAssertionContext = new ShouldThrowAssertionContext(expected, null, exceptionMessage, shouldlyMethod: shouldlyMethod); if (customMessage != null) ShouldlyAssertionContext.CustomMessage = customMessage(); }
public ShouldlyThrowShouldlyMessage(Type exception, [InstantHandle] Func<string> customMessage) { ShouldlyAssertionContext = new ShouldThrowAssertionContext(exception); if (customMessage != null) ShouldlyAssertionContext.CustomMessage = customMessage(); }
public TaskShouldlyThrowMessage(object expected, string exceptionMessage, Func<string> customMessage) { ShouldlyAssertionContext = new ShouldThrowAssertionContext(expected, null, exceptionMessage, isAsync: true); if (customMessage != null) ShouldlyAssertionContext.CustomMessage = customMessage(); }
public TaskShouldlyThrowMessage(object expected, [InstantHandle] Func<string> customMessage) { ShouldlyAssertionContext = new ShouldThrowAssertionContext(expected, isAsync: true); if (customMessage != null) ShouldlyAssertionContext.CustomMessage = customMessage(); }
public TaskShouldlyThrowMessage(object expected, object actual, [InstantHandle] Func<string> customMessage) { ShouldlyAssertionContext = new ShouldThrowAssertionContext(expected, actual, isAsync: true) { HasRelevantActual = true }; if (customMessage != null) ShouldlyAssertionContext.CustomMessage = customMessage(); }