Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException> Konstruktory

Definice

Přetížení

Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException>(Int32, Int32, Action, Boolean)

Zdroj:
Assert.ThrowsException.cs
Zdroj:
Assert.ThrowsException.cs
Zdroj:
Assert.ThrowsException.cs
Zdroj:
Assert.ThrowsException.cs
Zdroj:
Assert.ThrowsException.cs
Zdroj:
Assert.ThrowsException.cs
Zdroj:
Assert.ThrowsException.cs
Zdroj:
Assert.ThrowsException.InterpolatedStringHandlers.cs
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)

Parametry

literalLength
Int32

Počet konstantních znaků v interpolovaném řetězci.

formattedCount
Int32

Počet interpolačních výrazů v interpolovaném řetězci.

action
Action

Delegát, který je uplatněn; zpráva se vypočítá pouze v případě, že kontrolní výraz selže.

shouldAppend
Boolean

Když tato metoda vrátí, určuje, zda má být interpolovaný řetězec vyhodnocen.

Platí pro

Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException>(Int32, Int32, Func<Object>, Boolean)

Zdroj:
Assert.ThrowsException.cs
Zdroj:
Assert.ThrowsException.cs
Zdroj:
Assert.ThrowsException.cs
Zdroj:
Assert.ThrowsException.cs
Zdroj:
Assert.ThrowsException.cs
Zdroj:
Assert.ThrowsException.cs
Zdroj:
Assert.ThrowsException.InterpolatedStringHandlers.cs
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)

Parametry

literalLength
Int32

Počet konstantních znaků v interpolovaném řetězci.

formattedCount
Int32

Počet interpolačních výrazů v interpolovaném řetězci.

action
Func<Object>

Delegát, který je uplatněn; zpráva se vypočítá pouze v případě, že kontrolní výraz selže.

shouldAppend
Boolean

Když tato metoda vrátí, určuje, zda má být interpolovaný řetězec vyhodnocen.

Platí pro