1 public class DataManager 2 { 3 public void GetData() 4 { 5 //如果在测试调试中进来, HttpContext.Current是空的, HttpContext.Current.Response.Output.Write("addasdfdsfsfdsf"); 6 } 7 } 8 [TestMethod()] 9 public void GetDataTest()10 {11 DataManager data = new DataManager();12 data.GetData();13 }
求详细解决办法。谢谢
慕运维8079593