Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<TException> 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public AssertNonStrictThrowsAsyncInterpolatedStringHandler(int literalLength, int formattedCount, Func<System.Threading.Tasks.Task> action, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)> : int * int * Func<System.Threading.Tasks.Task> * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)>
Public Sub New (literalLength As Integer, formattedCount As Integer, action As Func(Of Task), ByRef shouldAppend As Boolean)
參數
- literalLength
- Int32
插值字串中常數字元的數量。
- formattedCount
- Int32
插值字串中插值表達式的數量。
- shouldAppend
- Boolean
當此方法回傳時,表示是否應評估插值字串。