Export (0) Print
Expand All

Assert.IsTrue Method (Boolean)

Verifies that the specified condition is true. The assertion fails if the condition is false.

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

public static void IsTrue(
	bool condition
)

Parameters

condition
Type: System.Boolean
The condition to verify is true.

ExceptionCondition
AssertFailedException

condition evaluates to false.

Community Additions

ADD
Show:
© 2014 Microsoft