comp • gb.test • assert • errorwithcode

Assert.ErrorWithCode (gb.test)

Static Sub ErrorWithCode ( Code As Integer [ , Message As String ] )

Asserts that an error happened with Code number. You have to create the error with Try. For example: Try(2/0)