CSharpTest.Net
Assert Method
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net Namespace > DebugAssertionFailedException Class : Assert Method

condition
message

Glossary Item Box

if(condition == false) throws Debug Assertion Failed: {0}

Syntax

Visual Basic (Declaration) 
Public Shared Sub Assert( _
   ByVal condition As Boolean, _
   ByVal message As String _
) 
C# 
public static void Assert( 
   bool condition,
   string message
)

Parameters

condition
message

Exceptions

ExceptionDescription
DebugAssertionFailedExceptionException class: DebugAssertionFailedException Debug Assertion Failed: {0}

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys