コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        public void two_lines()
        {
            var ac = new AddComments();

            var result = ac.Transform(new[] {
                "aaa",
                "bbb"
            });

            var expected = new[] {
                "// aaa",
                "// bbb"
            };

            CollectionAssert.AreEqual(expected, result);
        }