Ejemplo n.º 1
0
        public void DifferentIndents(
            string originalCode,
            uint indents,
            string expectedCode,
            uint expectedIndents
            )
        {
            VariableBlockEnd var =
                new VariableBlockEnd(originalCode, "    ", "\n");

            Assert.Equal(expectedCode, var.Format(ref indents));
            Assert.Equal(expectedIndents, indents);
        }
Ejemplo n.º 2
0
        public void DifferentIndents(
            string originalCode,
            int indents,
            string expectedCode,
            int expectedIndents
            )
        {
            Globals.indentation = "    ";
            Globals.lineEnding  = "\n";
            VariableBlockEnd var = new VariableBlockEnd(originalCode);

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