public void TestBuildPostDataForTags2() { string postData = CdnPurger.BuildPostData(new string[] { "tag1", "tag2" }); Console.WriteLine(postData); Assert.IsTrue("{\"tags\":[\"tag1\",\"tag2\"]}" == postData); }
public void TestBuildPostData2() { string postData = CdnPurger.BuildPostData("goyabeta-57a7.kxcdn.com", new string[] { "test.html" }); Console.WriteLine(postData); Assert.IsTrue("{\"urls\":[\"goyabeta-57a7.kxcdn.com/test.html\"]}" == postData); }