Assert.AssertThrowsExactlyInterpolatedStringHandler<TException> Constructors

Definition

Overloads

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

Source:
Assert.ThrowsException.cs
Source:
Assert.ThrowsException.cs
Source:
Assert.ThrowsException.cs
Source:
Assert.ThrowsException.cs
Source:
Assert.ThrowsException.cs
Source:
Assert.ThrowsException.cs
Source:
Assert.ThrowsException.cs
Source:
Assert.ThrowsException.InterpolatedStringHandlers.cs

Initializes a new instance of the Assert.AssertThrowsExactlyInterpolatedStringHandler<TException> struct.

public AssertThrowsExactlyInterpolatedStringHandler(int literalLength, int formattedCount, Action action, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertThrowsExactlyInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)> : int * int * Action * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertThrowsExactlyInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)>
Public Sub New (literalLength As Integer, formattedCount As Integer, action As Action, ByRef shouldAppend As Boolean)

Parameters

literalLength
Int32

The number of constant characters in the interpolated string.

formattedCount
Int32

The number of interpolation expressions in the interpolated string.

action
Action

The delegate being asserted; the message is only computed when the assertion fails.

shouldAppend
Boolean

When this method returns, indicates whether the interpolated string should be evaluated.

Applies to

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

Source:
Assert.ThrowsException.cs
Source:
Assert.ThrowsException.cs
Source:
Assert.ThrowsException.cs
Source:
Assert.ThrowsException.cs
Source:
Assert.ThrowsException.cs
Source:
Assert.ThrowsException.InterpolatedStringHandlers.cs

Initializes a new instance of the Assert.AssertThrowsExactlyInterpolatedStringHandler<TException> struct.

public AssertThrowsExactlyInterpolatedStringHandler(int literalLength, int formattedCount, Func<object?> action, out bool shouldAppend);
new Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertThrowsExactlyInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)> : int * int * Func<obj> * bool -> Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertThrowsExactlyInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)>
Public Sub New (literalLength As Integer, formattedCount As Integer, action As Func(Of Object), ByRef shouldAppend As Boolean)

Parameters

literalLength
Int32

The number of constant characters in the interpolated string.

formattedCount
Int32

The number of interpolation expressions in the interpolated string.

action
Func<Object>

The delegate being asserted; the message is only computed when the assertion fails.

shouldAppend
Boolean

When this method returns, indicates whether the interpolated string should be evaluated.

Applies to