@@ -471,23 +471,28 @@ private static (SyntaxNode, SyntaxNode?, string, Assembly) RunTestsRenderer(
471471 }
472472
473473 // Writing generated tests and mocks to files
474- private static void WriteResults (
474+ private static List < string > WriteResults (
475475 DirectoryInfo outputDir ,
476476 string typeName ,
477477 SyntaxNode testsProgram ,
478478 SyntaxNode ? mocksProgram )
479479 {
480+ var files = new List < string > ( ) ;
480481 var testFilePath = Path . Combine ( outputDir . FullName , $ "{ typeName } Tests.cs") ;
481482 AddRenderedInFile ( testFilePath , testsProgram ) ;
483+ files . Add ( testFilePath ) ;
482484 if ( mocksProgram != null )
483485 {
484486 var mocksFilePath = Path . Combine ( outputDir . FullName , "Mocks.cs" ) ;
485487 AddRenderedInFile ( mocksFilePath , mocksProgram ) ;
488+ files . Add ( mocksFilePath ) ;
486489 }
490+
491+ return files ;
487492 }
488493
489494 // API method for Rider extension
490- public static DirectoryInfo Render (
495+ public static ( DirectoryInfo , List < string > ) Render (
491496 IEnumerable < FileInfo > tests ,
492497 FileInfo testingProject ,
493498 Type declaringType ,
@@ -500,9 +505,9 @@ public static DirectoryInfo Render(
500505 var outputDir = testingProject . Directory ? . Parent ;
501506 Debug . Assert ( outputDir != null && outputDir . Exists ) ;
502507 var testProjectPath = GenerateTestProject ( outputDir , testingProject , solutionForTests ) ;
503- WriteResults ( outputDir , typeName , testsProgram , mocksProgram ) ;
508+ var renderedFiles = WriteResults ( outputDir , typeName , testsProgram , mocksProgram ) ;
504509
505- return testProjectPath ;
510+ return ( testProjectPath , renderedFiles ) ;
506511 }
507512
508513 // API method for VSharp
0 commit comments