摘要: http://www.cnblogs.com/xuejie/archive/2012/12/14/2818452.html 阅读全文
posted @ 2014-01-24 11:25 zyip 阅读(181) 评论(0) 推荐(0)
摘要: [TestMethod] [HostType("ASP.NET")] [UrlToTest("http://localhost:25153/qq/a.aspx")] [AspNetDevelopmentServerHost(@"C:\Users\Public\Documents\ooooooo", "/")] public void Test1() { var url = HttpContext.Current.Request.Url; var root = Htt... 阅读全文
posted @ 2014-01-24 09:41 zyip 阅读(305) 评论(0) 推荐(0)
摘要: // Use ClassInitialize to run code before running the first test in the class[ClassInitialize()]public static void MyClassInitialize(TestContext testContext) { }// Use ClassCleanup to run code after all tests in a class have run[ClassCleanup()]public static void MyClassCleanup() { }// Use TestInitia 阅读全文
posted @ 2014-01-24 08:48 zyip 阅读(208) 评论(0) 推荐(0)