Assert.AssertThrowsExactlyAsyncInterpolatedStringHandler<TException> Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides an interpolated string handler used by Assert.ThrowsExactlyAsync overloads
that only allocates and formats the message when the assertion is failing.
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public readonly struct Assert.AssertThrowsExactlyAsyncInterpolatedStringHandler<TException> where TException : Exception
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Diagnostics.StackTraceHidden]
[System.Runtime.CompilerServices.InterpolatedStringHandler]
[System.Runtime.CompilerServices.IsReadOnly]
[System.Runtime.CompilerServices.Nullable(0)]
public readonly struct Assert.AssertThrowsExactlyAsyncInterpolatedStringHandler<TException> where TException : Exception
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
type Assert.AssertThrowsExactlyAsyncInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)> = struct
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
[<System.Diagnostics.StackTraceHidden>]
[<System.Runtime.CompilerServices.InterpolatedStringHandler>]
[<System.Runtime.CompilerServices.IsReadOnly>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type Assert.AssertThrowsExactlyAsyncInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)> = struct
Public Structure Assert.AssertThrowsExactlyAsyncInterpolatedStringHandler(Of TException)
Type Parameters
- TException
The type of exception expected to be thrown.
- Inheritance
-
Assert.AssertThrowsExactlyAsyncInterpolatedStringHandler<TException>
- Attributes
Remarks
This type is intended to be used by the compiler; users should not reference it directly.
Constructors
| Name | Description |
|---|---|
| Assert.AssertThrowsExactlyAsyncInterpolatedStringHandler<TException>(Int32, Int32, Func<Task>, Boolean) |
Initializes a new instance of the Assert.AssertThrowsExactlyAsyncInterpolatedStringHandler<TException> struct. |