TException
CSharpTest.Net
Assert<TException>(Boolean,String,Exception) Method
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > (Global) Namespace > Check Class > Assert Method : Assert<TException>(Boolean,String,Exception) Method

condition
message
innerException

Glossary Item Box

Verifies that the condition is true and if it fails constructs the specified type of exception with any arguments provided and throws.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Sub Assert(Of TException As {New, Exception})( _
   ByVal condition As Boolean, _
   ByVal message As String, _
   ByVal innerException As Exception _
) 
C# 
public static void Assert<TException>( 
   bool condition,
   string message,
   Exception innerException
)
where TException: new(), Exception

Parameters

condition
message
innerException

Type Parameters

TException

Requirements

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

See Also

Generated with Document! X 2011 by Innovasys