public void TestInterface() { string[] expected = { "Namespace Test.Namespace", " Public Interface IInterface", " Inherits IAnotherInterface", "", " Function GenericMethod(Of TA As IEnumerable(Of TB), TB)(ByVal a As TA, ByVal b As TB) As Integer", "", " Sub AnotherMethod()", " End Interface", "End Namespace" }; ProviderTestUtils.DoVisualBasicTest(expected, ProviderTestUtils.TestInterfaceCompileUnit()); }
public void TestInterface() { string[] expected = new string[] { "namespace Test.Namespace", "{", " public interface IInterface", " : IAnotherInterface", " {", " int GenericMethod<TA, TB>(TA a, TB b)", " where TA : IEnumerable<TB>;", "", " void AnotherMethod();", " }", "}" }; ProviderTestUtils.DoCSharpTest(expected, ProviderTestUtils.TestInterfaceCompileUnit()); }