Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException> Konstruktoren

Definition

Überlädt

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
Quelle:
Assert.ThrowsException.InterpolatedStringHandlers.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
Quelle:
Assert.ThrowsException.InterpolatedStringHandlers.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.

action
Func<Object>

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: