예제 #1
0
        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 = Net20TwoAssemblyExpectedRunnerResults.ResultFor(processModel, domainUsage);

            return(new TestCaseData(package, expected).SetName($"{{m}}({testName})"));
        }
예제 #2
0
        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 = Net20SingleAssemblyListCtorExpectedRunnerResults.ResultFor(processModel, domainUsage);

            return(new TestCaseData(package, expected).SetName($"{{m}}({testName})"));
        }
예제 #3
0
        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);
        }