Skip to content

ExceptionExtensions Class ​

Definition ​

Extension methods that provide exception-specific assertions.

c#
public static class ExceptionExtensions

View source

Methods ​

NameDescription
HaveActualValue<TException>(ExceptionAssertions<TException>, Object)Asserts that the ArgumentOutOfRangeException has the specified actual value.
HaveParamName<TException>(ExceptionAssertions<TException>, String)Asserts that the ArgumentException has the specified parameter name.
NotHaveActualValue<TException>(ExceptionAssertions<TException>, Object)Asserts that the ArgumentOutOfRangeException does not have the specified actual value.
NotHaveParamName<TException>(ExceptionAssertions<TException>, String)Asserts that the ArgumentException does not have the specified parameter name.