[ExpectedException(typeof(Exception), "Whatever")]
...goes below the [TestMethod] attribute, setting the expectation that the test will blow up in this way. "Whatever" herein represents the exception message.
No comments:
Post a Comment