Assert.AssertThrowsExactlyAsyncInterpolatedStringHandler<TException> Struct

Definition

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.

Applies to