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); }
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); }