public void TestPropertiesAndMethodSignature() { string[] expected = { "Namespace Test.Namespace", " Public Class TestClass", " Public Overridable Property Prop As Integer = 1", "", " Public Sub Method(ByVal a As Integer, Optional ByVal b As Integer = 0)", " End Sub", " End Class", "End Namespace" }; ProviderTestUtils.DoVisualBasicTest(expected, ProviderExtTestUtils.TestPropertiesAndMethodSignatureCompileUnit()); }
public void TestPropertiesAndMethodSignature() { string[] expected = new string[] { "namespace Test.Namespace", "{", " public class TestClass", " {", " public virtual int Prop", " {", " get;", " private set;", " } = 1;", "", " public void Method(int a, int b = 0)", " {", " }", " }", "}" }; ProviderTestUtils.DoCSharpTest(expected, ProviderExtTestUtils.TestPropertiesAndMethodSignatureCompileUnit()); }