3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs
/// <summary>
/// Bug 8655 - Completion for attribute properties not working
/// </summary>
Bug 8655 - Completion for attribute properties not working
Bug 8655 - Completion for attribute properties not working
[Test]
		public void TestBug8655 ()
		{
			CombinedProviderTest(
				@"using System;
namespace TestConsole
{
	[AttributeUsage (AttributeTargets.Assembly, Inherited = true, AllowMultiple = true)]
	public sealed class MyAttribute : Attribute
	{
		public int NamedInt { get; set; }
		public int[] Categories { get; set; }
		public MyAttribute (string[] str) { }
	}
	$[MyAttribute(new[] {""Foo"", ""Bar""}, Categories = new[] {1,2,3}, n$
	class MainClass
	{
	}
}
", provider => {
				Assert.IsNotNull(provider.Find("NamedInt"));
				Assert.IsNull(provider.Find("delegate"));
			});
		}
[ Test ] public void TestBug8655 ( ) { CombinedProviderTest ( @"using System;

namespace TestConsole
{
	[AttributeUsage (AttributeTargets.Assembly, Inherited = true, AllowMultiple = true)]
	public sealed class MyAttribute : Attribute
	{
		public int NamedInt { get; set; }
		public int[] Categories { get; set; }

		public MyAttribute (string[] str) { }
	}


	$[MyAttribute(new[] {""Foo"", ""Bar""}, Categories = new[] {1,2,3}, n$
	class MainClass
	{
	}
}


" , provider => { Assert . IsNotNull ( provider . Find ( " " ) ) ; Assert . IsNull ( provider . Find ( " " ) ) ; } ) ; }
Bug 8655 - Completion for attribute properties not working
Bug 8655 - Completion for attribute properties not working