Bagikan melalui


Assert.Inconclusive Method (String)

Indicates that the assertion can not be verified. Displays a message.

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 _
)
public static void Inconclusive(
    string message
)
public:
static void Inconclusive(
    String^ message
)
static member Inconclusive : 
        message:string -> unit
public static function Inconclusive(
    message : String
)

Parameters

  • message
    Type: String

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

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