diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-09-21 14:33:27 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-09-21 14:38:31 +0400 |
commit | 6699fda7e60d2347f4a15730061f71da7814a8fd (patch) | |
tree | 0dbaecdea157e8ed82c3f72d2e6f2094b642a704 /main/tests | |
parent | 0d30764270257e13bdd8cc0b622cc2cd003392b0 (diff) |
Fixed 'Bug 469 - CreateMethod created a method incorrectly'.
Diffstat (limited to 'main/tests')
-rw-r--r-- | main/tests/UnitTests/MonoDevelop.Refactoring/CreateMethodTests.cs | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/main/tests/UnitTests/MonoDevelop.Refactoring/CreateMethodTests.cs b/main/tests/UnitTests/MonoDevelop.Refactoring/CreateMethodTests.cs index 4ec0d0ede4..4d7bed3c68 100644 --- a/main/tests/UnitTests/MonoDevelop.Refactoring/CreateMethodTests.cs +++ b/main/tests/UnitTests/MonoDevelop.Refactoring/CreateMethodTests.cs @@ -188,7 +188,7 @@ namespace MonoDevelop.Refactoring.Tests throw new System.NotImplementedException ();
}"); } - + [Test()] public void TestCreateDelegateDeclaration () { @@ -439,7 +439,35 @@ namespace Test { ", true); } + /// <summary> + /// Bug 469 - CreateMethod created a method incorrectly + /// </summary> + [Test()] + public void TestBug469 () + { + TestCreateMethod ( +@"class Test +{ + public override string ToString () + { + $BeginDownloadingImage (this); + } +} +", @"class Test +{ + public void BeginDownloadingImage (Test par1) + { + throw new System.NotImplementedException (); } + public override string ToString () + { + BeginDownloadingImage (this); + } +} +", true); + } + + } } |