private static async Task <FileModel> AddUnitTestClassAsync(ProjectModelBase unitTestProjectLocation, UnitTestCreationDetails unitTestCreationOptions) { var unitTestClass = new TestClassTemplate(unitTestProjectLocation, unitTestCreationOptions); return(await unitTestProjectLocation.AddFileAsync(unitTestCreationOptions.UnitTestClassFileName, unitTestClass.TransformText())); }
private static async Task <FileModel> AddAutomationTestClassAsync(ProjectModelBase testFolder, UIAutomationTestCreationOptions automationTestOptions) { var unitTestClass = new TestTemplate(testFolder, automationTestOptions); return(await testFolder.AddFileAsync($"{automationTestOptions.TestClassName}.cs", unitTestClass.TransformText())); }