public void TestBug474199B() { var provider = ParameterHintingTests.CreateProvider( @" public class InnerTest { public class Inner { public Inner(string test) { } } } public class ExtInner : InnerTest { } class Test { public void TestMethod () { $new ExtInner.Inner ($ } } "); Assert.IsNotNull(provider, "provider not found."); Assert.AreEqual(1, provider.Count, "There should be one overload"); Assert.AreEqual(1, provider[0].ParameterCount, "Parameter 'test' should exist"); }
public void TestBug4323() { // just test for exception ParameterHintingTests.CreateProvider( @"namespace Test { class TestClass { public static void Main(string[] args) { $object foo = new Foo($ } } }"); }
public void TestArrayInitializerParameterContext() { var provider = ParameterHintingTests.CreateProvider( @"using System; class MyTest { public void Test () { $new [] { Tuple.Create($ } }"); Assert.IsNotNull(provider, "provider was not created."); Assert.Greater(provider.Count, 1); }
public void TestBug4290() { // just test for exception ParameterHintingTests.CreateProvider( @"using System; namespace Test { class TestClass { $public static void Foo(string bar,$ public static void Main(string[] args) { } } }"); }