public void RemoveCommentBlocksTest_2() { var loc = new Loc(); var lines = new[] { "/* Ko", "12345", "ar*/" }; CollectionAssert.AreEqual(new string[0], BlockComments.RemoveCommentBlocks(lines).ToArray()); }
public void RemoveCommentBlocksTest_4() { var loc = new Loc(); var lines = new[] { " Kommentar */ var g = 2;" }; CollectionAssert.AreEqual(new[] { " Kommentar */ var g = 2;" }, BlockComments.RemoveCommentBlocks(lines).ToArray()); }
public void RemoveCommentInLineTest_0() { var loc = new Loc(); Assert.AreEqual(" var g = 2; ", BlockComments.RemoveBlockCommentsInLine("/* Kommentar */ var g = 2; /* Kommentar */")); }
public void RemoveCommentBlocksTest_0() { var loc = new Loc(); var lines = new[] { "var a = 2; /* Ko", "12345", "ar*/ var g = 2;" }; CollectionAssert.AreEqual(new[] { "var a = 2; /* Ko", "ar*/ var g = 2;" }, BlockComments.RemoveCommentBlocks(lines).ToArray()); }