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

github.com/xamarin/NRefactory.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@xamarin.com>2014-03-20 19:27:21 +0400
committerMike Krüger <mkrueger@xamarin.com>2014-03-20 19:27:21 +0400
commit9719b418ad985e840650b715c13cdad51a18cdd5 (patch)
tree767274c49918237c367af22d983dfa5428393f12 /ICSharpCode.NRefactory.Tests
parent9d2209e78daaec4dccb45b12425ef47c6abdd382 (diff)
Added failing unit test.
Diffstat (limited to 'ICSharpCode.NRefactory.Tests')
-rw-r--r--ICSharpCode.NRefactory.Tests/IndentationTests/BlockTest.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/ICSharpCode.NRefactory.Tests/IndentationTests/BlockTest.cs b/ICSharpCode.NRefactory.Tests/IndentationTests/BlockTest.cs
index a3d9f0b3..2b207daf 100644
--- a/ICSharpCode.NRefactory.Tests/IndentationTests/BlockTest.cs
+++ b/ICSharpCode.NRefactory.Tests/IndentationTests/BlockTest.cs
@@ -1204,5 +1204,36 @@ class Foo
Assert.AreEqual("\t\t\t\t", indent.NextLineIndent);
}
+ /// <summary>
+ /// Bug 18463 - Indentation does not work when typed statement does not require semicolon
+ /// </summary>
+ [Ignore("Fixme")]
+ [Test]
+ public void TestBug18463()
+ {
+ var policy = FormattingOptionsFactory.CreateMono();
+
+ var indent = Helper.CreateEngine(@"
+namespace FooBar
+{
+ public class TestProject
+ {
+ public static int Main ()
+ {
+ switch (current_token) {
+ case Token.CLOSE_PARENS:
+ case Token.TRUE:
+ case Token.FALSE:
+ case Token.NULL:
+ case Token.LITERAL:
+ return Token.INTERR;
+ }
+ if (true) {
+ $
+", policy);
+ Assert.AreEqual("\t\t\t\t", indent.ThisLineIndent);
+ Assert.AreEqual("\t\t\t\t", indent.NextLineIndent);
+ }
+
}
}