Debug.Assert : Debug « System.Diagnostics « VB.Net by API






Debug.Assert

  

Imports System.IO
Module Module1

    Sub Main()
        Dim FileStr As StreamWriter

        System.Diagnostics.Debug.Assert(Not (FileStr Is Nothing), "FileStr is NULL")

        System.Diagnostics.Debug.Assert(Directory.Exists("\Temp"), "\Temp does not exist")

    End Sub

End Module

   
    
  








Related examples in the same category

1.Debug.AutoFlush
2.Debug.Listeners
3.Debug.Listeners.Remove
4.Debug.WriteLine