Пример #1
0
        public void DifferentEmptyLines(string unformattedCode, uint initialIndents, string expected)
        {
            string    lineEnding = "\n";
            string    indent     = " ";
            EmptyLine line       = new EmptyLine(unformattedCode, indent, lineEnding);

            uint indents = initialIndents;

            Assert.Equal(expected, line.Format(ref indents));
        }
Пример #2
0
        public void DifferentEmptyLines(
            string unformattedCode, uint initialIndents, string expected
            )
        {
            Global.indentation = " ";
            Global.lineEnding  = "\n";
            EmptyLine line = new EmptyLine(unformattedCode);

            uint indents = initialIndents;

            Assert.Equal(expected, line.Format(ref indents));
        }