コード例 #1
0
        public void Replace_Custom_Code_Tags_With_Pre_Tags(string input, string expected)
        {
            var pf     = new PostFormatter();
            var output = pf.Prettify(input);

            Assert.AreEqual(output, expected);
        }
コード例 #2
0
        public void Not_Change_String_Without_Code_Tags(string input, string expected)
        {
            var pf     = new PostFormatter();
            var output = pf.Prettify(input);

            Assert.AreEqual(output, expected);
        }
コード例 #3
0
        public void Replace_Env_NewLine_With_Br_Tag()
        {
            var input    = $"Here is a post {Environment.NewLine} with a newline.";
            var expected = $"Here is a post <br /> with a newline.";
            var pf       = new PostFormatter();
            var output   = pf.Prettify(input);

            Assert.AreEqual(output, expected);
        }