Example #1
0
        public void DifferentIndents(
            string originalCode,
            uint indents,
            string expectedCode,
            uint expectedIndents
            )
        {
            VariableBlockStart var =
                new VariableBlockStart(originalCode, "    ", "\n");

            Assert.Equal(expectedCode, var.Format(ref indents));
            Assert.Equal(expectedIndents, indents);
        }
Example #2
0
        public void DifferentIndents(
            string originalCode,
            uint indents,
            string expectedCode,
            uint expectedIndents
            )
        {
            Global.indentation = "    ";
            Global.lineEnding  = "\n";
            VariableBlockStart var = new VariableBlockStart(originalCode);

            Assert.Equal(expectedCode, var.Format(ref indents));
            Assert.Equal(expectedIndents, indents);
        }