コード例 #1
0
        public static IEnumerable <object[]> GetPageAndFeatureTemplatesForBuild(string framework, string language = ProgrammingLanguages.CSharp)
        {
            IEnumerable <object[]> result = new List <object[]>();

            switch (framework)
            {
            case "CodeBehind":
                result = BuildTemplatesTestFixture.GetPageAndFeatureTemplatesForBuild(framework, language);
                break;

            case "MVVMBasic":
                result = BuildTemplatesTestFixture.GetPageAndFeatureTemplatesForBuild(framework, language);
                break;

            case "MVVMLight":
                result = BuildTemplatesTestFixture.GetPageAndFeatureTemplatesForBuild(framework, language);
                break;

            case "CaliburnMicro":
                result = BuildTemplatesTestFixture.GetPageAndFeatureTemplatesForBuild(framework);
                break;

            case "Prism":
                result = BuildTemplatesTestFixture.GetPageAndFeatureTemplatesForBuild(framework);
                break;
            }

            return(result);
        }
コード例 #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 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);
        }
コード例 #3
0
        public static IEnumerable <object[]> GetPageAndFeatureTemplatesForBuildAsync(string framework)
        {
            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(() => BuildTemplatesTestFixture.GetPageAndFeatureTemplatesAsync(framework));
                break;

            case "MVVMBasic":
                result = context.Factory.Run(() => BuildTemplatesTestFixture.GetPageAndFeatureTemplatesAsync(framework));
                break;

            case "MVVMLight":
                result = context.Factory.Run(() => BuildTemplatesTestFixture.GetPageAndFeatureTemplatesAsync(framework));
                break;

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

            case "Prism":
                result = context.Factory.Run(() => BuildTemplatesTestFixture.GetPageAndFeatureTemplatesAsync(framework));
                break;
            }

            return(result);
        }
コード例 #4
0
        public static IEnumerable <object[]> GetPageAndFeatureTemplatesForBuild(string framework, string language = ProgrammingLanguages.CSharp, string platform = Platforms.Uwp, string excludedItem = "")
        {
            IEnumerable <object[]> result = new List <object[]>();

            switch (framework)
            {
            case Frameworks.CodeBehind:
                result = BuildTemplatesTestFixture.GetPageAndFeatureTemplatesForBuild(framework, language, platform, excludedItem);
                break;

            case Frameworks.MVVMBasic:
                result = BuildTemplatesTestFixture.GetPageAndFeatureTemplatesForBuild(framework, language, platform, excludedItem);
                break;

            case Frameworks.MVVMLight:
                result = BuildTemplatesTestFixture.GetPageAndFeatureTemplatesForBuild(framework, language, platform, excludedItem);
                break;

            case Frameworks.MVVMToolkit:
                result = BuildTemplatesTestFixture.GetPageAndFeatureTemplatesForBuild(framework, language, platform, excludedItem);
                break;

            case Frameworks.CaliburnMicro:
                result = BuildTemplatesTestFixture.GetPageAndFeatureTemplatesForBuild(framework, language, platform, excludedItem);
                break;

            case Frameworks.Prism:
                result = BuildTemplatesTestFixture.GetPageAndFeatureTemplatesForBuild(framework, language, platform, excludedItem);
                break;
            }

            return(result);
        }
コード例 #5
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);
        }
コード例 #6
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(() => BuildTemplatesTestFixture.GetProjectTemplatesAsync(framework, programmingLanguage));
                break;

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

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

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

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

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

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

            return(result);
        }
コード例 #7
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":
                result = BuildRightClickWithLegacyFixture.GetProjectTemplates();
                break;

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

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

            return(result);
        }
コード例 #8
0
 public BuildCodeBehindProjectTests(BuildTemplatesTestFixture fixture)
 {
     _fixture = fixture;
     _fixture.InitializeFixture(this, "CodeBehind");
 }
コード例 #9
0
 public BuildCaliburnMicroProjectTests(BuildTemplatesTestFixture fixture)
     : base(fixture, null, "CaliburnMicro")
 {
 }
コード例 #10
0
 public BuildPrismProjectTests(BuildTemplatesTestFixture fixture)
     : base(fixture, null, "Prism")
 {
 }
コード例 #11
0
 public BuildMVVMLightProjectTests(BuildTemplatesTestFixture fixture)
 {
     _fixture = fixture;
     _fixture.InitializeFixtureAsync(this, "MVVMLight");
 }
コード例 #12
0
 public BuildMVVMLightProjectTests(BuildTemplatesTestFixture fixture)
     : base(fixture, null, "MVVMLight")
 {
 }
コード例 #13
0
 public BuildCodeBehindProjectTests(BuildTemplatesTestFixture fixture)
     : base(fixture, null, "CodeBehind")
 {
 }
コード例 #14
0
 public BuildCaliburnMicroProjectTests(BuildTemplatesTestFixture fixture)
 {
     _fixture = fixture;
     _fixture.InitializeFixture(this, "CaliburnMicro");
 }
コード例 #15
0
 public BuildMVVMBasicProjectTests(BuildTemplatesTestFixture fixture)
 {
     _fixture = fixture;
     _fixture.InitializeFixture(this, "MVVMBasic");
 }
コード例 #16
0
 public BuildMVVMBasicProjectTests(BuildTemplatesTestFixture fixture)
     : base(fixture, null, "MVVMBasic")
 {
 }
コード例 #17
0
 public BuildPrismProjectTests(BuildTemplatesTestFixture fixture)
 {
     _fixture = fixture;
     _fixture.InitializeFixture(this, "Prism");
 }