public void TestComplexClassAndMethodSignature() { string[] expected = { "Namespace Test.Namespace", " Public MustInherit Class TestClass(Of T1 As {A, New}, T2 As {IA, IB})", " Inherits BaseClass", " Implements IInterface", "", " Private Sub GenericMethod(Of TA As IEnumerable(Of TB), TB)(ByVal a As TA, ByVal b As TB)", " End Sub", " End Class", "End Namespace" }; ProviderTestUtils.DoVisualBasicTest(expected, ProviderTestUtils.TestComplexClassAndMethodSignatureCompileUnit()); }
public void TestComplexClassAndMethodSignature() { string[] expected = new string[] { "namespace Test.Namespace", "{", " public abstract class TestClass<T1, T2>", " : BaseClass, IInterface", " where T1 : A, new()", " where T2 : IA, IB", " {", " private void GenericMethod<TA, TB>(TA a, TB b)", " where TA : IEnumerable<TB>", " {", " }", " }", "}" }; ProviderTestUtils.DoCSharpTest(expected, ProviderTestUtils.TestComplexClassAndMethodSignatureCompileUnit()); }