3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 550185 - Intellisence for extension methods
/// </summary>
Bug 550185 - Intellisence for extension methods
Bug 550185 - Intellisence for extension methods
[Test]
		public void TestBug550185 ()
		{
			CompletionDataList provider = CreateProvider (
@"
public interface IMyinterface<T> {
	T Foo ();
}
public static class ExtMethods {
	public static int MyCountMethod(this IMyinterface<string> i)
	{
		return 0;
	}
}
class TestClass
{
	void Test ()
	{
		IMyinterface<int> test;
		$test.$
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.IsNull (provider.Find ("MyCountMet2hod"), "method 'MyCountMethod' found, but shouldn't.");
		}
[ Test ] public void TestBug550185 ( ) { CompletionDataList provider = CreateProvider ( @"
public interface IMyinterface<T> {
	T Foo ();
}

public static class ExtMethods {
	public static int MyCountMethod(this IMyinterface<string> i)
	{
		return 0;
	}
}

class TestClass
{
	void Test ()
	{
		IMyinterface<int> test;
		$test.$
	}
}

" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . IsNull ( provider . Find ( " " ) , " " ) ; }
Bug 550185 - Intellisence for extension methods
Bug 550185 - Intellisence for extension methods