3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/ObjectInitializerTests.cs
/// <summary>
/// Bug 7383 - Object initializer completion inaccessible
/// </summary>
Bug 7383 - Object initializer completion inaccessible
Bug 7383 - Object initializer completion inaccessible
[Test()]
		public void TestBug7383()
		{
			var provider = CodeCompletionBugTests.CreateCtrlSpaceProvider(
				@"using System.Runtime.InteropServices;
class S
{
    public int Foo { get; protected set; }
    public int Bar { get; set; }
}
class C
{
    public static void Main ()
    {
        var s = new S () {
            $Fo$
        };
    }
}
");
			Assert.IsNull(provider.Find("Foo"), "'Foo' found.");
			Assert.IsNotNull(provider.Find("Bar"), "'Bar' not found.");
		}
[ Test ( ) ] public void TestBug7383 ( ) { var provider = CodeCompletionBugTests . CreateCtrlSpaceProvider ( @"using System.Runtime.InteropServices;

class S
{
    public int Foo { get; protected set; }
    public int Bar { get; set; }
}

class C
{
    public static void Main ()
    {
        var s = new S () {
            $Fo$
        };
    }
}

" ) ; Assert . IsNull ( provider . Find ( " " ) , " " ) ; Assert . IsNotNull ( provider . Find ( " " ) , " " ) ; }
Bug 7383 - Object initializer completion inaccessible
Bug 7383 - Object initializer completion inaccessible