I am writing some unit tests with NUnit 3.0 and, unlike v2.x, ExpectedException() has been removed from the library.
ExpectedException()
Based on this answer, I can definit
You can create a custom Attribute in NUnit 3. Here is the sample code how to create [ExpectedException] Attribute.(ExpectedExceptionExample Shows how to implement a custom attribute for NUnit) https://github.com/nunit/nunit-csharp-samples
[ExpectedException]