CSharpTest.Net
Assert(Boolean,String) Method
See Also  Send Feedback Download Help File
CSharpTest.Net.BPlusTree Assembly > CSharpTest.Net Namespace > AssertionFailedException Class > Assert Method : Assert(Boolean,String) Method

condition
message

Glossary Item Box

if(condition == false) throws A runtime assertion failed: {0}

Syntax

Visual Basic (Declaration) 
Public Overloads 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
AssertionFailedExceptionException class: AssertionFailedException A runtime assertion failed while performing the operation.

Requirements

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

See Also

Generated with Document! X 2011 by Innovasys