diff options
Diffstat (limited to 'main/tests/UnitTests/MonoDevelop.CSharpBinding/CSharpTextEditorIndentationTests.cs')
-rw-r--r-- | main/tests/UnitTests/MonoDevelop.CSharpBinding/CSharpTextEditorIndentationTests.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/main/tests/UnitTests/MonoDevelop.CSharpBinding/CSharpTextEditorIndentationTests.cs b/main/tests/UnitTests/MonoDevelop.CSharpBinding/CSharpTextEditorIndentationTests.cs index 16270bb7ef..09e4259738 100644 --- a/main/tests/UnitTests/MonoDevelop.CSharpBinding/CSharpTextEditorIndentationTests.cs +++ b/main/tests/UnitTests/MonoDevelop.CSharpBinding/CSharpTextEditorIndentationTests.cs @@ -394,6 +394,29 @@ namespace MonoDevelop.CSharpBinding CheckOutput (data, "namespace Foo\n{\n\tpublic class Bar\n\t{\n\t\tvoid Test()\r\n\t\t{\r\n\t\t\t/* foo\n\t\t\t * $\n\t\t}\n\t}\n}\n"); } + + /// <summary> + /// Bug 23109 - Semicolon is put at the end of line instead at the position of cursor + /// </summary> + [Test] + public void TestBug23109 () + { + TestGuessSemicolonInsertionOffset ("int i = 400$~ DelayMax / DelayMin; // 1 s", false); + } + + [Test] + public void TestBug23109_CorrectCase () + { + TestGuessSemicolonInsertionOffset ("int i = 400$ DelayMax / DelayMin~ // 1 s"); + } + + [Test] + public void TestBlockComment () + { + TestGuessSemicolonInsertionOffset ("int i = 400$~ DelayMax / DelayMin; /* 1 s", false); + } + + /// <summary> /// Bug 17766 - Decreasing tab on single line bounces back to formatting spot. /// </summary> |