nspec / NSpec

A battle hardened testing framework for C# that's heavily inspired by Mocha and RSpec.
http://nspec.org/
MIT License
260 stars 57 forks source link

PR for issue #188 #189

Closed BennieCopeland closed 7 years ago

BennieCopeland commented 7 years ago

PR for issue #188.

I've added a expectNoExceptions property that returns a lambda expression. It just rethrows the context exception, but I thought about wrapping it in custom exception to better express where it failed at. I wasn't sure where Context Failure: unexpected failure, Example Failure: unexpected failure is used as I've never noticed it in the console runner, so I'm unsure how it will present itself there.