Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException> Konstruktoren
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| Name | Beschreibung |
|---|---|
| Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException>(Int32, Int32, Action, Boolean) |
Initialisiert eine neue instance der Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException> -Struktur. |
| Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException>(Int32, Int32, Func<Object>, Boolean) |
Initialisiert eine neue instance der Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException> -Struktur. |
Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException>(Int32, Int32, Action, Boolean)
- Quelle:
- Assert.ThrowsException.cs
- Quelle:
- Assert.ThrowsException.cs
- Quelle:
- Assert.ThrowsException.cs
- Quelle:
- Assert.ThrowsException.cs
- Quelle:
- Assert.ThrowsException.cs
- Quelle:
- Assert.ThrowsException.cs
- Quelle:
- Assert.ThrowsException.cs
Initialisiert eine neue instance der Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException> -Struktur.
public AssertNonStrictThrowsInterpolatedStringHandler(int literalLength, int formattedCount, Action action, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertNonStrictThrowsInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)> : int * int * Action * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertNonStrictThrowsInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)>
Public Sub New (literalLength As Integer, formattedCount As Integer, action As Action, ByRef shouldAppend As Boolean)
Parameter
- literalLength
- Int32
Die Anzahl der Konstantenzeichen in der interpolierten Zeichenfolge.
- formattedCount
- Int32
Die Anzahl der Interpolationsausdrücke in der interpolierten Zeichenfolge.
- action
- Action
Die Stellvertretung, die geltend gemacht wird; die Nachricht wird nur berechnet, wenn die Assertion fehlschlägt.
- shouldAppend
- Boolean
Gibt an, ob die interpolierte Zeichenfolge ausgewertet werden soll, wenn diese Methode zurückgegeben wird.
Gilt für:
Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException>(Int32, Int32, Func<Object>, Boolean)
- Quelle:
- Assert.ThrowsException.cs
- Quelle:
- Assert.ThrowsException.cs
- Quelle:
- Assert.ThrowsException.cs
- Quelle:
- Assert.ThrowsException.cs
- Quelle:
- Assert.ThrowsException.cs
- Quelle:
- Assert.ThrowsException.cs
Initialisiert eine neue instance der Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException> -Struktur.
public AssertNonStrictThrowsInterpolatedStringHandler(int literalLength, int formattedCount, Func<object?> action, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertNonStrictThrowsInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)> : int * int * Func<obj> * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertNonStrictThrowsInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)>
Public Sub New (literalLength As Integer, formattedCount As Integer, action As Func(Of Object), ByRef shouldAppend As Boolean)
Parameter
- literalLength
- Int32
Die Anzahl der Konstantenzeichen in der interpolierten Zeichenfolge.
- formattedCount
- Int32
Die Anzahl der Interpolationsausdrücke in der interpolierten Zeichenfolge.
Die Stellvertretung, die geltend gemacht wird; die Nachricht wird nur berechnet, wenn die Assertion fehlschlägt.
- shouldAppend
- Boolean
Gibt an, ob die interpolierte Zeichenfolge ausgewertet werden soll, wenn diese Methode zurückgegeben wird.