fluffynuts / NExpect

An assertions framework for .NET with a BDD-like feel, inspired by Chai and Jasmine, designed to be user-extensible
BSD 3-Clause "New" or "Revised" License
22 stars 8 forks source link

Disabiguate .Throws<T> where there are multiple exception types with the same class name #18

Closed fluffynuts closed 4 years ago

fluffynuts commented 4 years ago

As seen by a user: there were two implementations of an exception with the same classname, from different assemblies. NExpect noted that the incorrect exception was thrown, however the message was confusing because it was something like

Expected to throw an instance of T, but threw T instead

The output message should, in this case, disambiguate with a fully-namespaces type names