Ejemplo n.º 1
0
        // Set a single programming language to stop the fixture using all languages available to it
        public static IEnumerable <object[]> GetProjectTemplatesForBuild(string framework, string programmingLanguage, string platform)
        {
            IEnumerable <object[]> result = new List <object[]>();

            switch (framework)
            {
            case Frameworks.CodeBehind:
            case Frameworks.None:
            case Frameworks.MVVMBasic:
            case Frameworks.MVVMLight:
            case Frameworks.MVVMToolkit:
            case Frameworks.CaliburnMicro:
            case Frameworks.Prism:
                result = BuildTemplatesTestFixture.GetProjectTemplates(framework, programmingLanguage, platform);
                break;

            case "LegacyFrameworks":
                result = BuildRightClickWithLegacyFixture.GetProjectTemplates(platform, programmingLanguage);
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(framework));
            }

            return(result);
        }
Ejemplo n.º 2
0
        // Set a single programming language to stop the fixture using all languages available to it
        public static IEnumerable <object[]> GetProjectTemplatesForBuild(string framework, string programmingLanguage, string platform)
        {
            IEnumerable <object[]> result = new List <object[]>();

            switch (framework)
            {
            case "CodeBehind":
                result = BuildTemplatesTestFixture.GetProjectTemplates(framework, programmingLanguage, platform);
                break;

            case "MVVMBasic":
                result = BuildTemplatesTestFixture.GetProjectTemplates(framework, programmingLanguage, platform);
                break;

            case "MVVMLight":
                result = BuildTemplatesTestFixture.GetProjectTemplates(framework, programmingLanguage, platform);
                break;

            case "CaliburnMicro":
                result = BuildTemplatesTestFixture.GetProjectTemplates(framework, programmingLanguage, platform);
                break;

            case "LegacyFrameworks":
                if (programmingLanguage == ProgrammingLanguages.CSharp)
                {
                    result = BuildRightClickWithLegacyCSharpFixture.GetProjectTemplates();
                }
                if (programmingLanguage == ProgrammingLanguages.VisualBasic)
                {
                    result = BuildRightClickWithLegacyVBFixture.GetProjectTemplates();
                }
                break;

            case "Prism":
                result = BuildTemplatesTestFixture.GetProjectTemplates(framework, programmingLanguage, platform);
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(framework));
            }

            return(result);
        }
        // Set a single programming language to stop the fixture using all languages available to it
        public static IEnumerable <object[]> GetProjectTemplatesForBuild(string framework, string programmingLanguage, string platform)
        {
            IEnumerable <object[]> result = new List <object[]>();

            switch (framework)
            {
            case "CodeBehind":
                result = BuildTemplatesTestFixture.GetProjectTemplates(framework, programmingLanguage, platform);
                break;

            case "MVVMBasic":
                result = BuildTemplatesTestFixture.GetProjectTemplates(framework, programmingLanguage, platform);
                break;

            case "MVVMLight":
                result = BuildTemplatesTestFixture.GetProjectTemplates(framework, programmingLanguage, platform);
                break;

            case "CaliburnMicro":
                result = BuildTemplatesTestFixture.GetProjectTemplates(framework, programmingLanguage, platform);
                break;

            case "LegacyFrameworks":
                result = BuildRightClickWithLegacyFixture.GetProjectTemplates();
                break;

            case "Prism":
                result = BuildTemplatesTestFixture.GetProjectTemplates(framework, programmingLanguage, platform);
                break;

            default:
                result = BuildFixture.GetProjectTemplates();
                break;
            }

            return(result);
        }