2011年9月4日
摘要: 我们做单元测试NUnit中,有一个断言Assert.Throws很好用,但当我们使用MsTest时你需要这样写: 1: [TestMethod] 2: [ExpectedException(typeof(ArgumentNullException))] 3: public void WriteToTextFile() 4: ... 阅读全文
posted @ 2011-09-04 22:05 PetterLiu 阅读(2578) 评论(1) 推荐(3) 编辑