diff options
author | Mike Krüger <mkrueger@novell.com> | 2011-03-28 15:35:36 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@novell.com> | 2011-03-28 15:35:36 +0400 |
commit | fbed4dabde229f82a72821efb34dee6addbc1025 (patch) | |
tree | c9c95c74e34e50d33a0b1a88de543dc3f3481e1d /main/tests | |
parent | ac1e85f50559bf4c0f3b4e404d39a7cbec42fc93 (diff) |
Fixed 'Bug 683011 - Implement interface may insert region in the wrong
spot'.
Diffstat (limited to 'main/tests')
-rw-r--r-- | main/tests/UnitTests/Mono.TextEditor.Tests/InsertionModeTests.cs | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/main/tests/UnitTests/Mono.TextEditor.Tests/InsertionModeTests.cs b/main/tests/UnitTests/Mono.TextEditor.Tests/InsertionModeTests.cs index b3fb9e634e..d83f6d1827 100644 --- a/main/tests/UnitTests/Mono.TextEditor.Tests/InsertionModeTests.cs +++ b/main/tests/UnitTests/Mono.TextEditor.Tests/InsertionModeTests.cs @@ -56,7 +56,7 @@ namespace Mono.TextEditor.Tests { string test = CreateInsertionPoint (@"class Test { - $void TestMethod () +$ void TestMethod () { } }", "\tint a;", NewLineInsertion.None, NewLineInsertion.BlankLine); @@ -97,7 +97,7 @@ $}", "\tint a;", NewLineInsertion.Eol, NewLineInsertion.Eol); void TestMethod1 () { } - $void TestMethod2 () +$ void TestMethod2 () { } }", "\tint a;", NewLineInsertion.Eol, NewLineInsertion.BlankLine); @@ -115,6 +115,20 @@ $}", "\tint a;", NewLineInsertion.Eol, NewLineInsertion.Eol); }", test); } + /// <summary> + /// Bug 683011 - Implement interface may insert region in the wrong spot + /// </summary> + [Test()] + public void TestBug683011 () + { + string test = CreateInsertionPoint (@"class Test +{$}", "\tint a;", NewLineInsertion.Eol, NewLineInsertion.Eol); + Assert.AreEqual (@"class Test +{ + int a; +}", test); + } + } } |