private IResultSummary RunSingleSpecification(string fileExtension)
        {
            var specificationLocator = new ClassNameBasedSpecificationLocator(fileExtension);

            ResultPath = m_Target.ResolvedPathFor(specificationLocator.LocateSpecification(m_Fixture));
            var concordionExtender = new ConcordionBuilder();

            concordionExtender
            .WithSource(m_Source)
            .WithTarget(m_Target)
            .WithSpecificationLocator(specificationLocator);
            var extensionLoader = new ExtensionLoader(m_SpecificationConfig);

            extensionLoader.AddExtensions(m_Fixture, concordionExtender);
            var concordion = concordionExtender.Build();

            return(concordion.Process(m_Fixture));
        }
Example #2
0
        private ResultSummary RunSingleSpecification(object fixture, Source source,
                                                     SpecificationLocator specificationLocator, Target target, SpecificationConfig specificationConfig)
        {
            var concordionExtender = new ConcordionBuilder();

            concordionExtender
            .withIOUtil(new IOUtil())
            .withSource(source)
            .withTarget(target)
            .withSpecificationLocator(specificationLocator)
            .withEvaluatorFactory(new BridgingEvaluatorFactory());
            var extensionLoader = new ExtensionLoader(specificationConfig);

            extensionLoader.AddExtensions(fixture, concordionExtender);

            var concordion = concordionExtender.build();

            return(concordion.process(specificationLocator.locateSpecification(fixture), fixture));
        }