3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/ObjectInitializerTests.cs
/// <summary>
/// Bug 9910 - Completion not working in object initializer
/// </summary>
Bug 9910 - Completion not working in object initializer
Bug 9910 - Completion not working in object initializer
[Test]
		public void TestBug9910()
		{
			var provider = CodeCompletionBugTests.CreateCtrlSpaceProvider(
				@"class Test 
{
    Test(int i) { }
    Test(char c) { }
    static Test foo(dynamic d)
    {
        return new Test(d) {
            $f$
        };
    }
    public static void Main(string [] args)
    {
    }
    int fld;
    int fld2;
}
");
			Assert.IsNotNull(provider.Find("fld"), "'fld' found.");
			Assert.IsNotNull(provider.Find("fld2"), "'fld2' not found.");
		}
[ Test ] public void TestBug9910 ( ) { var provider = CodeCompletionBugTests . CreateCtrlSpaceProvider ( @"class Test 
{
    Test(int i) { }
    Test(char c) { }

    static Test foo(dynamic d)
    {
        return new Test(d) {
            $f$
        };
    }

    public static void Main(string [] args)
    {
    }

    int fld;
    int fld2;
}

" ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; }
Bug 9910 - Completion not working in object initializer
Bug 9910 - Completion not working in object initializer