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:22:11 +0400
committerMike Krüger <mkrueger@novell.com>2011-03-28 15:22:11 +0400
commitac1e85f50559bf4c0f3b4e404d39a7cbec42fc93 (patch)
treed187c1da7f75d1b9b04312c4224ddf476216725a /main/tests
parent8a7938b703f565409f8c0e79f6bac9f30810e7c2 (diff)
Fixed 'Bug 683007 - "Refactor/Implement implicit" creates explicit
implementations of methods with same names'.
Diffstat (limited to 'main/tests')
-rw-r--r--main/tests/UnitTests/MonoDevelop.Refactoring/ImplementInterfaceTests.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/main/tests/UnitTests/MonoDevelop.Refactoring/ImplementInterfaceTests.cs b/main/tests/UnitTests/MonoDevelop.Refactoring/ImplementInterfaceTests.cs
index 6c6ca705fc..96a3b0eeb6 100644
--- a/main/tests/UnitTests/MonoDevelop.Refactoring/ImplementInterfaceTests.cs
+++ b/main/tests/UnitTests/MonoDevelop.Refactoring/ImplementInterfaceTests.cs
@@ -95,6 +95,26 @@ namespace MonoDevelop.Refactoring
throw new System.NotImplementedException ();
}");
}
+
+ /// <summary>
+ /// Bug 683007 - "Refactor/Implement implicit" creates explicit implementations of methods with same names
+ /// </summary>
+ [Test()]
+ public void TestBug683007 ()
+ {
+ TestCreateInterface (@"interface ITest {
+ void M1();
+ void M1(int x);
+}", @"public void M1 ()
+ {
+ throw new System.NotImplementedException ();
+ }
+
+ public void M1 (int x)
+ {
+ throw new System.NotImplementedException ();
+ }");
+ }
}
}