3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 587543 - Intellisense ignores interface constraints
/// </summary>
Bug 587543 - Intellisense ignores interface constraints
Bug 587543 - Intellisense ignores interface constraints
[Test]
		public void TestBug587543 ()
		{
			CompletionDataList provider = CreateProvider (
@"
interface ITest
{
	void Foo ();
}
class C
{
	void Test<T> (T t) where T : ITest
	{
		$t.$
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.IsNotNull (provider.Find ("Foo"), "method 'Foo' not found.");
		}
[ Test ] public void TestBug587543 ( ) { CompletionDataList provider = CreateProvider ( @"
interface ITest
{
	void Foo ();
}

class C
{
	void Test<T> (T t) where T : ITest
	{
		$t.$
	}
}
" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; }
Bug 587543 - Intellisense ignores interface constraints
Bug 587543 - Intellisense ignores interface constraints