public void TestReplaceBlogUrlToHttps_NonBlogUrl(string input) { var editor = new HatenaBlogContentEditor(input); editor.ReplaceBlogUrlToHttps(new[] { "example.com" }); Assert.AreEqual(input, editor.ToString(), "modified content"); }
public void TestReplaceBlogUrlToHttps(string input, string expectedResult) { var editor = new HatenaBlogContentEditor(input); editor.ReplaceBlogUrlToHttps(new[] { "example.com", "example.net" }); Assert.AreEqual(expectedResult, editor.ToString(), "modified content"); }