Beispiel #1
0
    public Test BuildFrom(Type type)
    {
        // need to create a top level test suite for each environment
        var environment = (IEnvironment)Activator.CreateInstance(type);
        var testSuite   = new EnvironmentTestSuite(environment);

// testSuite.Fixture = environment;
        foreach (var originalFixture in _testFixtures.Select(x => CreateTests(x, environment)))
        {
            testSuite.Add(originalFixture);
        }
        return(testSuite);
    }
    public Test BuildFrom(Type type)
    {
        // need to create a top level test suite for each environment
        var environment = (IEnvironment)Activator.CreateInstance(type);
        var testSuite = new EnvironmentTestSuite(environment);

        // testSuite.Fixture = environment;
        foreach (var originalFixture in _testFixtures.Select(x => CreateTests(x, environment)))
        {
            testSuite.Add(originalFixture);
        }
        return testSuite;
    }