3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 444110 - Code completion doesn't activate
/// </summary>
Bug 444110 - Code completion doesn't activate
Bug 444110 - Code completion doesn ' t activate
[Test]
		public void TestBug444110 ()
		{
			CompletionDataList provider = CreateProvider (
@"using System;
using System.Collections.Generic;
namespace System.Collections.Generic {
	public class TemplateClass<T>
	{
		public T TestField;
	}
}
namespace CCTests
{
	public class Test
	{
		public TemplateClass<int> TemplateClass { get; set; }
	}
	class MainClass
	{
		public static void Main(string[] args)
		{
			Test t = new Test();
			$t.TemplateClass.$
		}
	}
}");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.AreEqual (5, provider.Count);
			CodeCompletionBugTests.CheckObjectMembers (provider); 
			Assert.IsNotNull (provider.Find ("TestField"), "field 'TestField' not found.");
		}
[ Test ] public void TestBug444110 ( ) { CompletionDataList provider = CreateProvider ( @"using System;
using System.Collections.Generic;

namespace System.Collections.Generic {
	
	public class TemplateClass<T>
	{
		public T TestField;
	}
}

namespace CCTests
{
	
	public class Test
	{
		public TemplateClass<int> TemplateClass { get; set; }
	}
	
	class MainClass
	{
		public static void Main(string[] args)
		{
			Test t = new Test();
			$t.TemplateClass.$
		}
	}
}" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . AreEqual ( 5 , provider . Count ) ; CodeCompletionBugTests . CheckObjectMembers ( provider ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; }
Bug 444110 - Code completion doesn't activate
Bug 444110 - Code completion doesn ' t activate
// 4 from System.Object