示例#1
0
        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);
		}
示例#3
0
		public void SetCompilationUnitFileName(string fileName)
		{
			var helper = new CompilationUnitHelper();
			helper.SetFileName(fileName);
			Field.Stub(f => f.CompilationUnit).Return(helper.CompilationUnit);
		}
		void CreateCompilationUnitForFileProjectItem()
		{
			compilationUnitHelper = new CompilationUnitHelper();
			fakeFileService.CompilationUnitToReturnFromGetCompilationUnit = compilationUnitHelper.CompilationUnit;
		}