public void TestAttributes() { string[] expected = { "Namespace Test.Namespace", " <Attribute1> _", " <Attribute2(1, Value:=2)> _", " Public Class TestClass(Of T)", " <Attribute1>", " Private a As Integer", "", " Public Sub Method(<Attribute1> ByVal a As Integer, <Attribute1><Attribute2(1, Value:=2)> ByVal b As Integer)", " End Sub", " End Class", "End Namespace" }; ProviderTestUtils.DoVisualBasicTest(expected, ProviderTestUtils.TestAttributesCompileUnit()); }
public void TestAttributes() { string[] expected = new string[] { "namespace Test.Namespace", "{", " [Attribute1]", " [Attribute2(1, Value=2)]", " public class TestClass<[Attribute2(1, Value=2)][Attribute1] T>", " {", " [Attribute1]", " private int a;", "", " public void Method([Attribute1] int a, [Attribute1][Attribute2(1, Value=2)] int b)", " {", " }", " }", "}" }; ProviderTestUtils.DoCSharpTest(expected, ProviderTestUtils.TestAttributesCompileUnit()); }