Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Krüger <mikkrg@microsoft.com>2019-01-02 15:00:47 +0300
committerMike Krüger <mikkrg@microsoft.com>2019-01-11 10:14:27 +0300
commite10c0480f5767721a46e121ee6f386ec6bd205e9 (patch)
treeeb3e6637698a794a61b7643e29fdc234c8b30ba8 /main/tests
parent3cc0a0901f8c703f26c4e0578c2bdc4cb378f607 (diff)
Fixes VSTS Bug 753551: Using statement indenting
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/753551
Diffstat (limited to 'main/tests')
-rw-r--r--main/tests/MonoDevelop.CSharpBinding.Tests/MonoDevelop.CSharpBinding/CSharpTextEditorIndentationTests.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/main/tests/MonoDevelop.CSharpBinding.Tests/MonoDevelop.CSharpBinding/CSharpTextEditorIndentationTests.cs b/main/tests/MonoDevelop.CSharpBinding.Tests/MonoDevelop.CSharpBinding/CSharpTextEditorIndentationTests.cs
index c5c430c1fe..6cbdff7e60 100644
--- a/main/tests/MonoDevelop.CSharpBinding.Tests/MonoDevelop.CSharpBinding/CSharpTextEditorIndentationTests.cs
+++ b/main/tests/MonoDevelop.CSharpBinding.Tests/MonoDevelop.CSharpBinding/CSharpTextEditorIndentationTests.cs
@@ -624,5 +624,22 @@ $)
Assert.AreEqual ("\t\t\t", indent);
}
}
+
+ /// <summary>
+ /// Bug 753551: Using statement indenting
+ /// </summary>
+ [Test]
+ public async Task TestVSTS753551 ()
+ {
+ using (var data = await Create (@"
+// Test
+using System;
+$
+ ", createWithProject: true)) {
+ var tracker = new CSharpIndentationTracker (data.Document.Editor, data.Document);
+ var indent = tracker.GetIndentationString (data.Document.Editor.CaretLine);
+ Assert.AreEqual ("", indent);
+ }
+ }
}
}