public void SetCompilationUnitFileName(string fileName) { var helper = new CompilationUnitHelper(); helper.SetFileName(fileName); Field.Stub(f => f.CompilationUnit).Return(helper.CompilationUnit); }
void AddClassesToReparsedCompilationUnit(params ClassHelper[] classHelpers) { var compilationUnitHelper = new CompilationUnitHelper(); foreach (ClassHelper helper in classHelpers) { compilationUnitHelper.AddClass(helper.Class); } documentView.Stub(d => d.Parse()).Return(compilationUnitHelper.CompilationUnit); }
void CreateCompilationUnitForFileProjectItem() { compilationUnitHelper = new CompilationUnitHelper(); fakeFileService.CompilationUnitToReturnFromGetCompilationUnit = compilationUnitHelper.CompilationUnit; }