public static IList<string[]> Generate(GeneratorType type, IList<NodeFeature> features)
        {
            IGenerate generator;
            switch (type)
            {
                case GeneratorType.HeaderGenerator:
                    generator = new HeaderGenerator();
                    break;

                case GeneratorType.CodeBehindGenerator:
                    generator = new CodeBehindGenerator();
                    break;

                case GeneratorType.StepDefinitionGenerator:
                    generator = new StepDefinitionGenerator();
                    break;

                default:
                    throw new NotImplementedException();
            }
            return generator.Generate(new MSCppUnitTestLanguageConfig(), features);
        }
Example #2
0
        static public IList <string[]> Generate(GeneratorType type, IList <NodeFeature> features)
        {
            IGenerate generator;

            switch (type)
            {
            case GeneratorType.HeaderGenerator:
                generator = new HeaderGenerator();
                break;

            case GeneratorType.CodeBehindGenerator:
                generator = new CodeBehindGenerator();
                break;

            case GeneratorType.StepDefinitionGenerator:
                generator = new StepDefinitionGenerator();
                break;

            default:
                throw new NotImplementedException();
            }
            return(generator.Generate(new MSCppUnitTestLanguageConfig(), features));
        }