public void three_lines_with_one_empty() { var ac = new AddComments(); var result = ac.Transform("aaa\nbbb\n"); var expected = "// aaa\n// bbb\n"; Assert.AreEqual(expected, result); }
public void just_empty_lines() { var ac = new AddComments(); var result = ac.Transform(" \n \t \n"); var expected = " \n \t \n"; Assert.AreEqual(expected, result); }
public void two_lines() { var ac = new AddComments(); var result = ac.Transform(new[] { "aaa", "bbb" }); var expected = new[] { "// aaa", "// bbb" }; CollectionAssert.AreEqual(expected, result); }