我需要编写一个NUnit脚本来测试缓存数据。我在项目中添加了一个项目(Class libray),并添加了对NUnit.Framework的引用。但是我的代码中没有"HttpContext“。请告诉我应该包含哪个名称空间才能获得它。我在邮局的帮助下做的
Unit test HttpContext.Current.Cache or other server-side methods in C#?
请帮帮忙
感谢三
发布于 2011-07-11 15:22:34
HttpContext是NameSpace System.Web中的一个类
https://stackoverflow.com/questions/6646907
复制相似问题