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); }
// 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); }
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); }
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); }
// 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[]> 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); }
// 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); }
public BuildCodeBehindProjectTests(BuildTemplatesTestFixture fixture) { _fixture = fixture; _fixture.InitializeFixture(this, "CodeBehind"); }
public BuildCaliburnMicroProjectTests(BuildTemplatesTestFixture fixture) : base(fixture, null, "CaliburnMicro") { }
public BuildPrismProjectTests(BuildTemplatesTestFixture fixture) : base(fixture, null, "Prism") { }
public BuildMVVMLightProjectTests(BuildTemplatesTestFixture fixture) { _fixture = fixture; _fixture.InitializeFixtureAsync(this, "MVVMLight"); }
public BuildMVVMLightProjectTests(BuildTemplatesTestFixture fixture) : base(fixture, null, "MVVMLight") { }
public BuildCodeBehindProjectTests(BuildTemplatesTestFixture fixture) : base(fixture, null, "CodeBehind") { }
public BuildCaliburnMicroProjectTests(BuildTemplatesTestFixture fixture) { _fixture = fixture; _fixture.InitializeFixture(this, "CaliburnMicro"); }
public BuildMVVMBasicProjectTests(BuildTemplatesTestFixture fixture) { _fixture = fixture; _fixture.InitializeFixture(this, "MVVMBasic"); }
public BuildMVVMBasicProjectTests(BuildTemplatesTestFixture fixture) : base(fixture, null, "MVVMBasic") { }
public BuildPrismProjectTests(BuildTemplatesTestFixture fixture) { _fixture = fixture; _fixture.InitializeFixture(this, "Prism"); }