Assert.AssertThrowsExactlyAsyncInterpolatedStringHandler<TException> Struktura
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Udostępnia interpolowaną procedurę obsługi ciągów używaną przez Assert.ThrowsExactlyAsync przeciążenia, które przydzielają i formatuje komunikat tylko w przypadku niepowodzenia asercji.
[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)
Parametry typu
- TException
Oczekiwany typ wyjątku.
- Dziedziczenie
-
Assert.AssertThrowsExactlyAsyncInterpolatedStringHandler<TException>
- Atrybuty
Uwagi
Ten typ ma być używany przez kompilator; użytkownicy nie powinni odwoływać się bezpośrednio do niego.
Konstruktory
| Nazwa | Opis |
|---|---|
| Assert.AssertThrowsExactlyAsyncInterpolatedStringHandler<TException>(Int32, Int32, Func<Task>, Boolean) |
Inicjuje nowe wystąpienie Assert.AssertThrowsExactlyAsyncInterpolatedStringHandler<TException> struktury. |
Metody
| Nazwa | Opis |
|---|---|
| AppendFormatted(Object, Int32, String) |
Udostępnia interpolowaną procedurę obsługi ciągów używaną przez |
| AppendFormatted(ReadOnlySpan<Char>, Int32, String) |
Udostępnia interpolowaną procedurę obsługi ciągów używaną przez |
| AppendFormatted(ReadOnlySpan<Char>) |
Udostępnia interpolowaną procedurę obsługi ciągów używaną przez |
| AppendFormatted(String, Int32, String) |
Udostępnia interpolowaną procedurę obsługi ciągów używaną przez |
| AppendFormatted(String) |
Udostępnia interpolowaną procedurę obsługi ciągów używaną przez |
| AppendFormatted<T>(T, Int32, String) |
Udostępnia interpolowaną procedurę obsługi ciągów używaną przez |
| AppendFormatted<T>(T, Int32) |
Udostępnia interpolowaną procedurę obsługi ciągów używaną przez |
| AppendFormatted<T>(T, String) |
Udostępnia interpolowaną procedurę obsługi ciągów używaną przez |
| AppendFormatted<T>(T) |
Udostępnia interpolowaną procedurę obsługi ciągów używaną przez |
| AppendLiteral(String) |
Udostępnia interpolowaną procedurę obsługi ciągów używaną przez |