The following test is green in resharper test runner.
Code Block |
---|
[Test] [ExpectedException(typeof(ArgumentOutOfRangeException))] public void ReadOnly() { throw new InvalidOperationException(); } |
So make sure you check the message as well like this
Code Block |
---|
[Test] [ExpectedException(typeof(ArgumentOutOfRangeException),ExpectedMessage = "hoi")] public void ReadOnly() { throw new InvalidOperationException("kees"); } |
The last test does show up red.