Skip to content
Maarten Groeneweg edited this page Mar 30, 2015 · 1 revision

title: I.Assert.Throws link: Throws

Assert that an Exception should be thrown by the anonymous function. Useful for negative assertions such as testing that something is not present.

// Page has no errors
I.Assert.Throws(() => I.Assert.Exists(".error"));
// TODO - Visual Basic Code Sample

Clone this wiki locally