gedaiu / fluent-asserts

DLang fluent assertions done right
http://fluentasserts.szabobogdan.com/
MIT License
43 stars 6 forks source link

Made ThrowableProxy templated on the throwable type. #29

Closed BenjaminSchaaf closed 7 years ago

BenjaminSchaaf commented 7 years ago

This would allow for the following (with vibe.d):

auto thrown = ({
    ...
}).should.throwException!HTTPStatusException.original;

thrown.status.should.equal(HTTPStatus.notFound);
gedaiu commented 7 years ago

awesome! this is a great idea! can you add a test for this case too?

thanks!

BenjaminSchaaf commented 7 years ago

I've added a test case. Found a silly bug when doing so :)

gedaiu commented 7 years ago

oh well... it's in unit-threaded...

gedaiu commented 7 years ago

I made a new release too :)

BenjaminSchaaf commented 7 years ago

Awesome, thank you!