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-21 14:37:56 +0400
committerMike Krüger <mkrueger@xamarin.com>2011-09-21 14:38:31 +0400
commitc61889fec8b0bdf037c7ac99ad5dbd2ad3d63b74 (patch)
treef6e32c11f6b86af2570a00fa9cb99e27e1578733 /main/tests
parent6699fda7e60d2347f4a15730061f71da7814a8fd (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.cs25
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);
+ }
}
}