Assert.AssertAreNotSameInterpolatedStringHandler<TArgument> 构造函数

定义

public AssertAreNotSameInterpolatedStringHandler(int literalLength, int formattedCount, TArgument notExpected, TArgument actual, out bool shouldAppend);
public AssertAreNotSameInterpolatedStringHandler(int literalLength, int formattedCount, TArgument? notExpected, TArgument? actual, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertAreNotSameInterpolatedStringHandler<'Argument> : int * int * 'Argument * 'Argument * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertAreNotSameInterpolatedStringHandler<'Argument>
Public Sub New (literalLength As Integer, formattedCount As Integer, notExpected As TArgument, actual As TArgument, ByRef shouldAppend As Boolean)

参数

literalLength
Int32

内插字符串中的常量字符数。

formattedCount
Int32

内插字符串中的内插表达式数。

notExpected
TArgument

不需要的值。

actual
TArgument

被断言的实际值。

shouldAppend
Boolean

此方法返回时,指示是否应计算内插字符串。

适用于