![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
ryxd_cry
无业游民
展开
-
Asp.net web单元测试(HttpContext context)
[TestMethod()]public void test01(){ HttpRequest request = new HttpRequest("", "http://请求地址", "page=1&limit=10&keyword="); HttpContext.Current = new HttpContext(request, new HttpResponse(new System.IO.StringWriter())); // 设置cookie .原创 2021-09-14 14:45:22 · 258 阅读 · 0 评论 -
C# JSON字符串字典序排序(递归)
#region json字符串字典序排序public static string SortJson(string json){ var dic = JsonConvert.DeserializeObject<SortedDictionary<string, object>>(json); SortedDictionary<string, object> keyValues = new SortedDictionary<string, objec.原创 2021-09-13 17:59:08 · 1273 阅读 · 1 评论