public void TestClientCodeGen_GlobalNamespace_NoRootNamespace_FullNames()
        {
            string[] sharedFiles = new string[]
            {
                TestHelper.GetTestFileName("Global.shared.cs"),
                TestHelper.GetTestFileName("Global.shared.vb"),
            };

            TestHelper.CodeGenValidationOptions options = new TestHelper.CodeGenValidationOptions(
                @"FullTypeNames\Scenarios",
                "CG_Global_Full",
                "GlobalNamespace_NoRootNamespace.g",
                new Type[] { typeof(GlobalNamespaceTest.GlobalNamespaceTest_DomainService) },
                /* language */ null,
                sharedFiles,
                /* rootNamespace */ string.Empty,
                /* useFullTypeNames */ true);

            options.AddSharedType(typeof(GlobalNamespaceTest_Attribute));
            options.AddSharedType(typeof(GlobalNamespaceTest_Enum));
            options.AddSharedType(typeof(GlobalNamespaceTest_Validation));
            options.AddSharedType(typeof(GlobalNamespaceTest_ValidationAttribute));
            options.AddSharedMethod(typeof(GlobalNamespaceTest_Validation).GetMethod("Validate"));

            TestHelper.ValidateCodeGen(options);
        }
        public void TestClientCodeGen_GlobalNamespace()
        {
            string[] sharedFiles = new string[]
            {
                TestHelper.GetTestFileName("Global.shared.cs"),
                TestHelper.GetTestFileName("Global.shared.vb"),
            };

            TestHelper.CodeGenValidationOptions options = new TestHelper.CodeGenValidationOptions(
                @"Default\Scenarios",
                "CG_Global",
                "GlobalNamespace.g",
                typeof(GlobalNamespaceTest.GlobalNamespaceTest_DomainService),
                sharedFiles,
                /* useFullTypeNames */ false);

            options.AddSharedType(typeof(GlobalNamespaceTest_Attribute));
            options.AddSharedType(typeof(GlobalNamespaceTest_Enum));
            options.AddSharedType(typeof(GlobalNamespaceTest_Validation));
            options.AddSharedType(typeof(GlobalNamespaceTest_ValidationAttribute));
            options.AddSharedMethod(typeof(GlobalNamespaceTest_Validation).GetMethod("Validate"));

            TestHelper.ValidateCodeGen(options);
        }