3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/ParameterCompletionTests.cs
/// <summary>
/// Bug 4927 - [New Resolver] Autocomplete shows non-static methods when using class name
/// </summary>
Bug 4927 - [New Resolver] Autocomplete shows non-static methods when using class name
Bug 4927 - [ New Resolver ] Autocomplete shows non - static methods when using class name
[Test]
		public void TestBug4927 ()
		{
			IParameterDataProvider provider = CreateProvider (
@"
public class A
{
  // static method
  public static void Method(string someParameter, object anotherParameter)
  {
  }
  // instance method
  public void Method()
  {
  }
}
public class B
{
  public static void Main()
  {
    $A.Method($
  }
}
");
			Assert.IsNotNull (provider, "provider was not created.");
			Assert.AreEqual (1, provider.Count);
		}
[ Test ] public void TestBug4927 ( ) { IParameterDataProvider provider = CreateProvider ( @"
public class A
{
  // static method
  public static void Method(string someParameter, object anotherParameter)
  {
  }

  // instance method
  public void Method()
  {
  }
}


public class B
{
  public static void Main()
  {
    $A.Method($
  }
}
" ) ; Assert . IsNotNull ( provider , " " ) ; Assert . AreEqual ( 1 , provider . Count ) ; }
Bug 4927 - [New Resolver] Autocomplete shows non-static methods when using class name
Bug 4927 - [ New Resolver ] Autocomplete shows non - static methods when using class name