A mock struct that always throws.
import std.exception: assertThrown; import unit_threaded.should: UnitTestException; auto m = throwStruct; assertThrown!UnitTestException(m.foo); assertThrown!UnitTestException(m.bar(1, "foo"));
See Implementation
A mock struct that always throws.