Exemple #1
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);
        }
Exemple #3
0
 public WindowsAppCertKitTests(BuildFixture fixture)
 {
     _fixture = fixture;
     _fixture.InitializeFixture(this);
 }
 public WindowsAppCertKitTests(BuildFixture fixture)
     : base(fixture)
 {
 }
 public WindowsAppCertKitTests(BuildFixture fixture)
 {
     _fixture = fixture;
 }