Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

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.