How do I enforce exception message with ExpectedException attribute
We use this attribute all over the place and we clearly misunderstood the second parameter (shame on us). However, we definitely have used it to check the exception message. The following was what we used with hints from this page. It doesn’t handle globalization, or inherited exception types, but it does what we need. Again, … Read more