diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-09-21 14:37:56 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-09-21 14:38:31 +0400 |
commit | c61889fec8b0bdf037c7ac99ad5dbd2ad3d63b74 (patch) | |
tree | f6e32c11f6b86af2570a00fa9cb99e27e1578733 /main/tests | |
parent | 6699fda7e60d2347f4a15730061f71da7814a8fd (diff) |
[CSharpBinding] Implemented guess return type for create method in the
'return' context.
Diffstat (limited to 'main/tests')
-rw-r--r-- | main/tests/UnitTests/MonoDevelop.Refactoring/CreateMethodTests.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/main/tests/UnitTests/MonoDevelop.Refactoring/CreateMethodTests.cs b/main/tests/UnitTests/MonoDevelop.Refactoring/CreateMethodTests.cs index 4d7bed3c68..8ac89e9ade 100644 --- a/main/tests/UnitTests/MonoDevelop.Refactoring/CreateMethodTests.cs +++ b/main/tests/UnitTests/MonoDevelop.Refactoring/CreateMethodTests.cs @@ -468,6 +468,31 @@ namespace Test { ", true); } + [Test()] + public void TestTestGuessReturnReturnType () + { + TestCreateMethod ( +@"class Test +{ + public override string ToString () + { + return $BeginDownloadingImage (this); + } +} +", @"class Test +{ + public string BeginDownloadingImage (Test par1) + { + throw new System.NotImplementedException (); + } + + public override string ToString () + { + return BeginDownloadingImage (this); + } +} +", true); + } } } |