示例#1
0
        public void TestReplaceBlogUrlToHttps_NonBlogUrl(string input)
        {
            var editor = new HatenaBlogContentEditor(input);

            editor.ReplaceBlogUrlToHttps(new[] { "example.com" });

            Assert.AreEqual(input, editor.ToString(), "modified content");
        }
示例#2
0
        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");
        }