예제 #1
0
 public void TestIdentifiers()
 {
     string[] expected = new string[]
     {
         "Namespace Test.Namespace",
         "    Public Class [Class]",
         "        Private value As Integer",
         "",
         "        Private Sub [namespace]()",
         "            [namespace]()",
         "            Me.namespace()",
         "        End Sub",
         "    End Class",
         "End Namespace"
     };
     ProviderTestUtils.DoVisualBasicTest(expected, ProviderTestUtils.TestIdentifiersCompileUnit());
 }
예제 #2
0
 public void TestIdentifiers()
 {
     string[] expected = new string[]
     {
         "namespace Test.Namespace",
         "{",
         "    public class Class",
         "    {",
         "        private int @value;",
         "",
         "        private void @namespace()",
         "        {",
         "            @namespace();",
         "            this.@namespace();",
         "        }",
         "    }",
         "}"
     };
     ProviderTestUtils.DoCSharpTest(expected, ProviderTestUtils.TestIdentifiersCompileUnit());
 }