private static TestCaseData SingleUnknownExtensionTest(ProcessModel processModel, DomainUsage domainUsage) { var testName = "Single unknown - " + $"{nameof(EnginePackageSettings.ProcessModel)}:{processModel} " + $"{nameof(EnginePackageSettings.DomainUsage)}:{domainUsage}"; var package = TestPackageFactory.OneUnknownExtension(); package.AddSetting(EnginePackageSettings.ProcessModel, processModel.ToString()); package.AddSetting(EnginePackageSettings.DomainUsage, domainUsage.ToString()); var expected = Net20ExpectedRunnerResults.ResultFor(processModel, domainUsage, 1); return(new TestCaseData(package, expected).SetName($"{{m}}({testName})")); }
private static TestCaseData TwoAssembliesTest(ProcessModel processModel, DomainUsage domainUsage) { var testName = "Two assemblies - " + $"{nameof(EnginePackageSettings.ProcessModel)}:{processModel} " + $"{nameof(EnginePackageSettings.DomainUsage)}:{domainUsage}"; var package = TestPackageFactory.TwoAssemblies(); package.AddSetting(EnginePackageSettings.ProcessModel, processModel.ToString()); package.AddSetting(EnginePackageSettings.DomainUsage, domainUsage.ToString()); var expected = Net20ExpectedRunnerResults.ResultFor(processModel, domainUsage, 2); return(new TestCaseData(package, expected).SetName($"{{m}}({testName})")); }
private static TestCaseData SingleAssemblyStringCtorTest(ProcessModel processModel, DomainUsage domainUsage) { var testName = "Single assembly (string ctor) - " + $"{nameof(EnginePackageSettings.ProcessModel)}:{processModel} " + $"{nameof(EnginePackageSettings.DomainUsage)}:{domainUsage}"; var package = TestPackageFactory.OneAssemblyStringCtor(); package.AddSetting(EnginePackageSettings.ProcessModel, processModel.ToString()); package.AddSetting(EnginePackageSettings.DomainUsage, domainUsage.ToString()); var expected = Net20ExpectedRunnerResults.ResultFor(processModel, domainUsage, 1); var testCase = new TestCaseData(package, expected).SetName($"{{m}}({testName})"); return(testCase); }