Example #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);
        }
Example #2
0
        // Set a single programming language to stop the fixture using all languages available to it
        public static IEnumerable <object[]> GetProjectTemplatesForBuildAsync(string framework, string programmingLanguage)
        {
            JoinableTaskContext    context = new JoinableTaskContext();
            JoinableTaskCollection tasks   = context.CreateCollection();

            context.CreateFactory(tasks);
            IEnumerable <object[]> result = new List <object[]>();

            switch (framework)
            {
            case "CodeBehind":
                result = context.Factory.Run(() => BuildCodeBehindFixture.GetProjectTemplatesAsync(framework, programmingLanguage));
                break;

            case "MVVMBasic":
                result = context.Factory.Run(() => BuildMVVMBasicFixture.GetProjectTemplatesAsync(framework, programmingLanguage));
                break;

            case "MVVMLight":
                result = context.Factory.Run(() => BuildMVVMLightFixture.GetProjectTemplatesAsync(framework, programmingLanguage));
                break;

            case "CaliburnMicro":
                result = context.Factory.Run(() => BuildCaliburnMicroFixture.GetProjectTemplatesAsync(framework));
                break;

            case "LegacyFrameworks":
                result = context.Factory.Run(() => BuildRightClickWithLegacyFixture.GetProjectTemplatesAsync());
                break;

            case "Prism":
                result = context.Factory.Run(() => BuildPrismFixture.GetProjectTemplatesAsync(framework));
                break;

            default:
                result = context.Factory.Run(() => BuildFixture.GetProjectTemplatesAsync());
                break;
            }

            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);
        }
Example #4
0
 public BuildRightClickWithLegacyTests(BuildRightClickWithLegacyFixture fixture)
     : base(fixture)
 {
 }
Example #5
0
 public BuildRightClickWithLegacyTests(BuildRightClickWithLegacyFixture fixture)
 {
     _fixture = fixture;
 }
Example #6
0
 public BuildRightClickWithLegacyTests(BuildRightClickWithLegacyFixture fixture)
 {
     _fixture = fixture;
     _fixture.InitializeFixture(this);
 }