
Debug.Assert Method
![]() |
---|
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience. |
Checks for a condition; if the condition is false, outputs messages and displays a message box that shows the call stack.
Assembly: System (in System.dll)
Name | Description | |
---|---|---|
![]() ![]() | Assert(Boolean) | Checks for a condition; if the condition is false, displays a message box that shows the call stack. |
![]() ![]() | Assert(Boolean, String) | Checks for a condition; if the condition is false, outputs a specified message and displays a message box that shows the call stack. |
![]() ![]() | Assert(Boolean, String, String) | Checks for a condition; if the condition is false, outputs two specified messages and displays a message box that shows the call stack. |
![]() ![]() | Assert(Boolean, String, String, Object[]) | Checks for a condition; if the condition is false, outputs two messages (simple and formatted) and displays a message box that shows the call stack. |