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@xamarin.com>2011-09-20 12:47:20 +0400
committerMike Krüger <mkrueger@xamarin.com>2011-09-20 12:47:20 +0400
commitf3ce85c32954e5bca9e51209e0bd1bd7f0a74b96 (patch)
tree351a0c8f6d2a676a79b85a0cc4fdcc854b203e97 /main/tests
parent3c448b6ae161f639b0bbc0bbfbc54a5e93aa5b01 (diff)
Fixed 'Bug 243 - Implement implicit interface doesn't handle overloads
correctly.'.
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 96a3b0eeb6..2a3f0bd574 100644
--- a/main/tests/UnitTests/MonoDevelop.Refactoring/ImplementInterfaceTests.cs
+++ b/main/tests/UnitTests/MonoDevelop.Refactoring/ImplementInterfaceTests.cs
@@ -115,6 +115,26 @@ namespace MonoDevelop.Refactoring
throw new System.NotImplementedException ();
}");
}
+
+ /// <summary>
+ /// Bug 243 - Implement implicit interface doesn't handle overloads correctly.
+ /// </summary>
+ [Test()]
+ public void TestBug243 ()
+ {
+ TestCreateInterface (@"interface ITest {
+ void Inc (int n);
+ void Inc (string message);
+}", @"public void Inc (int n)
+ {
+ throw new System.NotImplementedException ();
+ }
+
+ public void Inc (string message)
+ {
+ throw new System.NotImplementedException ();
+ }");
+ }
}
}