diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-09-20 12:47:20 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-09-20 12:47:20 +0400 |
commit | f3ce85c32954e5bca9e51209e0bd1bd7f0a74b96 (patch) | |
tree | 351a0c8f6d2a676a79b85a0cc4fdcc854b203e97 /main/tests | |
parent | 3c448b6ae161f639b0bbc0bbfbc54a5e93aa5b01 (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.cs | 20 |
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 (); + }"); + } } } |