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 <mkrueger@novell.com>2011-03-28 15:35:36 +0400
committerMike Krüger <mkrueger@novell.com>2011-03-28 15:35:36 +0400
commitfbed4dabde229f82a72821efb34dee6addbc1025 (patch)
treec9c95c74e34e50d33a0b1a88de543dc3f3481e1d /main/tests
parentac1e85f50559bf4c0f3b4e404d39a7cbec42fc93 (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.cs18
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);
+ }
+
}
}