public Project CreateSingleFileProject(string sourceFile) { var info = new ProjectCreateInformation () { ProjectName = Path.GetFileNameWithoutExtension (sourceFile), SolutionPath = Path.GetDirectoryName (sourceFile), ProjectBasePath = Path.GetDirectoryName (sourceFile), }; Project project = new CucumberProject (info, null); project.Files.Add (new ProjectFile (sourceFile)); return project; }
public Project CreateSingleFileProject(string sourceFile) { var info = new ProjectCreateInformation() { ProjectName = Path.GetFileNameWithoutExtension(sourceFile), SolutionPath = Path.GetDirectoryName(sourceFile), ProjectBasePath = Path.GetDirectoryName(sourceFile), }; Project project = new CucumberProject(info, null); project.Files.Add(new ProjectFile(sourceFile)); return(project); }