Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IsTrue Method (Boolean)

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 function IsTrue(
	condition : boolean
)

Parameters

condition
Type: System.Boolean

The condition to verify is true.

ExceptionCondition
AssertFailedException

condition evaluates to false.

Show:
© 2015 Microsoft