摘要: 编写单元测试时,新增一个控制器的抽象类。如下定义:1 [TestClass]2 public abstract class TestControllerBase<T> : TestBase where T : Controller编写一个HomeController的单元测试:1 [TestClass]2 public class TestHomeController : TestControllerBase<HomeController>编译通过,但Test的Output窗口提示:System.TypeLoadException was unhandledMessag 阅读全文
posted @ 2012-08-13 23:17 junchu25 阅读(736) 评论(0) 推荐(0) 编辑