Commits

Matt Oswald  committed dfa30f6

Edited online

  • Participants
  • Parent commits 68d1d55

Comments (0)

Files changed (1)

File TestEvents.wiki

 * {{{Throws}}} is an {{{Assert}}}-only member that checks that the supplied code throws a specific exception. If it succeeds, it will return the exception to your test.
 {{{
 #!c++
-auto ex = Assert.Throws<std::exception>([]() { throws std::runtime_error(""); });
+auto ex = Assert.Throws<std::exception>([]() { throw std::runtime_error(""); });
 }}}
 
 ==== Printing Values ====