Exemple #1
0
        private List <GeneratedTest> GenerateTestClasses(string sourceCode)
        {
            ParsingResultBuilder   builder = new ParsingResultBuilder();
            ParsingResultStructure result  = builder.GetResult(sourceCode);

            TestTemplateGenerator generator      = new TestTemplateGenerator();
            List <GeneratedTest>  generatedTests = generator.GetTestTemplates(result);

            return(generatedTests);
        }
 private void GenerateTestClass(string sourceCode)
 {
     ParsingResultBuilder   builder = new ParsingResultBuilder();
     ParsingResultStructure result  = builder.GetResult(sourceCode);
     //here we can genearte test class with result
 }