Esempio n. 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);
        }
Esempio n. 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);
        }