Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException> Konstruktory
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
| Name | Description |
|---|---|
| Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException>(Int32, Int32, Action, Boolean) |
Inicializuje novou instanci struktury Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException>. |
| Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException>(Int32, Int32, Func<Object>, Boolean) |
Inicializuje novou instanci struktury Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException>. |
Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException>(Int32, Int32, Action, Boolean)
Inicializuje novou instanci struktury Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException>.
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)
Inicializuje novou instanci struktury Assert.AssertNonStrictThrowsInterpolatedStringHandler<TException>.
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.
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.