Exemple #1
0
        public void TestEnum()
        {
            string[] expected =
            {
                "Namespace Test.Namespace",
                "    Public Enum TestEnum",
                "        A",
                "        B",
                "        C = 5",
                "        <System.SerializableAttribute>",
                "        D",
                "    End Enum",
                "End Namespace"
            };

            ProviderTestUtils.DoVisualBasicTest(expected, ProviderTestUtils.TestEnumCompileUnit());
        }
Exemple #2
0
        public void TestEnum()
        {
            string[] expected = new string[]
            {
                "namespace Test.Namespace",
                "{",
                "    public enum TestEnum",
                "    {",
                "        A,",
                "        B,",
                "        C = 5,",
                "        [System.SerializableAttribute]",
                "        D",
                "    }",
                "}"
            };

            ProviderTestUtils.DoCSharpTest(expected, ProviderTestUtils.TestEnumCompileUnit());
        }