3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/ObjectInitializerTests.cs
/// <summary>
/// Bug 487236 - Object initializer completion uses wrong type
/// </summary>
Bug 487236 - Object initializer completion uses wrong type
Bug 487236 - Object initializer completion uses wrong type
[Test()]
		public void TestBug487236 ()
		{
			CompletionDataList provider = CodeCompletionBugTests.CreateCtrlSpaceProvider (
@"
public class A
{
	public string Name { get; set; }
}
class MyTest
{
	public void Test ()
	{
		$new A () { $
	}
}
");
			Assert.IsNotNull (provider, "provider not found.");
			Assert.IsNotNull (provider.Find ("Name"), "property 'Name' not found.");
		}
[ Test ( ) ] public void TestBug487236 ( ) { CompletionDataList provider = CodeCompletionBugTests . CreateCtrlSpaceProvider ( @"
public class A
{
	public string Name { get; set; }
}

class MyTest
{
	public void Test ()
	{
		$new A () { $
	}
}
" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; }
Bug 487236 - Object initializer completion uses wrong type
Bug 487236 - Object initializer completion uses wrong type