public void FindRootTest() { string current = "https://www.cnblogs.com/dstang2000/zhong/sheng.html"; string expectedResult = "https://www.cnblogs.com"; string testResult = UrlService.FindRoot(current); Assert.AreEqual(expectedResult, testResult); }