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); }
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); }
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); }