Share via


Assert.Inconclusive Method (String, array<Object )

Indicates that an assertion can not be verified. Displays a message, and applies the specified formatting to it.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Public Shared Sub Inconclusive ( _
    message As String, _
    ParamArray parameters As Object() _
)
public static void Inconclusive(
    string message,
    params Object[] parameters
)
public:
static void Inconclusive(
    String^ message, 
    ... array<Object^>^ parameters
)
static member Inconclusive : 
        message:string * 
        parameters:Object[] -> unit
public static function Inconclusive(
    message : String, 
    ... parameters : Object[]
)

Parameters

  • message
    Type: String

    A message to display. This message can be seen in the unit test results.

  • parameters
    Type: array<Object[]

    An array of parameters to use when formatting message.

Exceptions

Exception Condition
AssertInconclusiveException

Always thrown.

Remarks

Similar to Fail in that it indicates an assertion is inconclusive without checking any conditions.

The code generated by Visual Studio when creating unit tests includes an Inconclusive statement as a placeholder.

.NET Framework Security

See Also

Reference

Assert Class

Inconclusive Overload

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

Other Resources

Using the Assert Classes