public void DifferentEmptyLines(string unformattedCode, uint initialIndents, string expected) { string lineEnding = "\n"; string indent = " "; EmptyLine line = new EmptyLine(unformattedCode, indent, lineEnding); uint indents = initialIndents; Assert.Equal(expected, line.Format(ref indents)); }
public void DifferentEmptyLines( string unformattedCode, uint initialIndents, string expected ) { Global.indentation = " "; Global.lineEnding = "\n"; EmptyLine line = new EmptyLine(unformattedCode); uint indents = initialIndents; Assert.Equal(expected, line.Format(ref indents)); }
public void EmptyLine_ContentChange_IsIgnored() { var emptyLine = new EmptyLine(); emptyLine.Content.Should().Be(Environment.NewLine); emptyLine .AppendContent("new part 2", "blah1") .AddContent("new part", "blah"); emptyLine.Content.Should().Be(Environment.NewLine); emptyLine.ClearContent(); emptyLine.Content.Should().Be(Environment.NewLine); }
public void EmptyLine(EmptyLine emptyLine) { Append("\n"); }
public void EmptyLine(EmptyLine emptyLine) { }