System.Diagnostics.Debug Assert Assertions in Managed Code - Visual Studio (Windows) | Microsoft Learn using System.Diagnostics; // ... int IntegerDivide ( int dividend , int divisor ) { Debug.Assert ( divisor != 0 ); return ( dividend / divisor ); } See also csharp Favorite site C# - 어서트(assert)