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