3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 568204 - Inconsistency in resolution
/// </summary>
Bug 568204 - Inconsistency in resolution
Bug 568204 - Inconsistency in resolution
[Test]
		public void TestBug568204 ()
		{
			CompletionDataList provider = CreateProvider (
@"
public class Style 
{
	public static Style TestMe ()
	{
		return new Style ();
	}
	public void Print ()
	{
		System.Console.WriteLine (""Hello World!"");
	}
}
public class Foo
{
	public Style Style { get; set;} 
	public void Bar ()
	{
		$Style.TestMe ().$
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.IsNotNull (provider.Find ("Print"), "method 'Print' not found.");
		}
[ Test ] public void TestBug568204 ( ) { CompletionDataList provider = CreateProvider ( @"
public class Style 
{
	public static Style TestMe ()
	{
		return new Style ();
	}
	
	public void Print ()
	{
		System.Console.WriteLine (""Hello World!"");
	}
}

public class Foo
{
	public Style Style { get; set;} 
	
	public void Bar ()
	{
		$Style.TestMe ().$
	}
}
" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; }
Bug 568204 - Inconsistency in resolution
Bug 568204 - Inconsistency in resolution