コード例 #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);
        }
コード例 #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);
        }