Comment 1 for bug 532536

Revision history for this message
Charlie Poole (charlie.poole) wrote :

It is not possible to universally determine textual order of attributes based on the metadata alone. Since NUnit tests are driven by the metadata, and not the source code, there is no way to accomplish what you want. (Note: it could be done in a framework-dependent, version-dependent manner, but not across all frameworks and versions)

Further, NUnit expects and allows only _one_ ExpectedExceptionAttribute on a method. The approach of deriving a new attribute from ExpectedException does not cause the new attribute to recognized by NUnit at all.

Charlie

PS: Sorry for the delay, this was inadvertently marked Incomplete some time ago and I only now re-examined it.