3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 577225 - Inconsistent autocomplete on returned value of generic method.
/// </summary>
Bug 577225 - Inconsistent autocomplete on returned value of generic method.
Bug 577225 - Inconsistent autocomplete on returned value of generic method .
[Test]
		public void TestBug577225 ()
		{
			CompletionDataList provider = CreateProvider (
@"
using Foo;
namespace Foo 
{
	public class FooBar
	{
		public void Bar ()
		{
		}
	}
}
namespace Other 
{
	public class MainClass
	{
		public static T Test<T> ()
		{
			return default (T);
		}
		public static void Main (string[] args)
		{
			$Test<FooBar> ().$
		}
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.IsNotNull (provider.Find ("Bar"), "method 'Bar' not found.");
		}
[ Test ] public void TestBug577225 ( ) { CompletionDataList provider = CreateProvider ( @"
using Foo;
	
namespace Foo 
{
	public class FooBar
	{
		public void Bar ()
		{
		}
	}
}

namespace Other 
{
	public class MainClass
	{
		public static T Test<T> ()
		{
			return default (T);
		}
			
		public static void Main (string[] args)
		{
			$Test<FooBar> ().$
		}
	}
}
" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; }
Bug 577225 - Inconsistent autocomplete on returned value of generic method.
Bug 577225 - Inconsistent autocomplete on returned value of generic method .