Example #1
0
        public void Generate(TestFiles testFiles)
        {
            testFiles.ForEach(testFile =>
            {
                var testClasses = testFile.TestClasses.GeneratedCode(testFile.Path);
                var content     =
                    $@"#pragma once
#include ""{testFile.Path}""

{testClasses}";

                var destinationPath = testFile.Path.Remove(0, RootPath.Length + 1);
                var filePath        = destinationPath.Substring(0, destinationPath.LastIndexOf('.'));
                GenerateFile(filePath + ".generated.h", content);
            });
        }