/// <summary> /// Runs the generator and saves the content in the test directory. /// </summary> /// <param name="generator">The generator to use for outputting the text of the cs file</param> /// <param name="fileName">The name of the cs file</param> /// <param name="subNamespace">Adds an additional directory for the namespace</param> void ExecuteTestGenerator(BaseGenerator generator, string fileName, string subNamespace = null) { generator.Config = this.config; var text = generator.TransformText(); WriteFile("Marshalling", null, fileName, text, this.testDirectory); }
/// <summary> /// Runs the generator and saves the content in the test directory. /// </summary> /// <param name="generator">The generator to use for outputting the text of the cs file</param> /// <param name="fileName">The name of the cs file</param> /// <param name="subNamespace">Adds an additional directory for the namespace</param> void ExecuteCustomizationTestGenerator(BaseGenerator generator, string fileName, string subNamespace = null) { generator.Config = this.config; var text = generator.TransformText(); WriteFile("Customizations", subNamespace, fileName, text, this.testDirectory); }
/// <summary> /// Runs the generator and saves the content into Portable directory. /// </summary> /// <param name="generator">The generator to use for outputting the text of the cs file</param> /// <param name="fileName">The name of the cs file</param> /// <param name="subNamespace">Adds an additional directory for the namespace</param> void ExecuteGeneratorPortable(BaseGenerator generator, string fileName, string subNamespace = null) { generator.Config = this.config; var text = generator.TransformText(); WriteFile(config.Namespace, subNamespace, fileName, text, this.outputDirPortable); }