|
|
|
|
@ -18,11 +18,11 @@ namespace ICSharpCode.AvalonEdit.Tests.Utils
@@ -18,11 +18,11 @@ namespace ICSharpCode.AvalonEdit.Tests.Utils
|
|
|
|
|
{ |
|
|
|
|
var options = new TextEditorOptions { IndentationSize = 4, ConvertTabsToSpaces = false }; |
|
|
|
|
Assert.AreEqual("\t", options.IndentationString); |
|
|
|
|
Assert.AreEqual("\t", options.GetIndentationString(1)); |
|
|
|
|
Assert.AreEqual("\t", options.GetIndentationString(2)); |
|
|
|
|
Assert.AreEqual("\t", options.GetIndentationString(3)); |
|
|
|
|
Assert.AreEqual("\t", options.GetIndentationString(4)); |
|
|
|
|
Assert.AreEqual("\t", options.GetIndentationString(5)); |
|
|
|
|
Assert.AreEqual("\t", options.GetIndentationString(6)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|
@ -30,11 +30,11 @@ namespace ICSharpCode.AvalonEdit.Tests.Utils
@@ -30,11 +30,11 @@ namespace ICSharpCode.AvalonEdit.Tests.Utils
|
|
|
|
|
{ |
|
|
|
|
var options = new TextEditorOptions { IndentationSize = 4, ConvertTabsToSpaces = true }; |
|
|
|
|
Assert.AreEqual(" ", options.IndentationString); |
|
|
|
|
Assert.AreEqual(" ", options.GetIndentationString(1)); |
|
|
|
|
Assert.AreEqual(" ", options.GetIndentationString(2)); |
|
|
|
|
Assert.AreEqual(" ", options.GetIndentationString(3)); |
|
|
|
|
Assert.AreEqual(" ", options.GetIndentationString(4)); |
|
|
|
|
Assert.AreEqual(" ", options.GetIndentationString(5)); |
|
|
|
|
Assert.AreEqual(" ", options.GetIndentationString(2)); |
|
|
|
|
Assert.AreEqual(" ", options.GetIndentationString(3)); |
|
|
|
|
Assert.AreEqual(" ", options.GetIndentationString(4)); |
|
|
|
|
Assert.AreEqual(" ", options.GetIndentationString(5)); |
|
|
|
|
Assert.AreEqual(" ", options.GetIndentationString(6)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|