public override void FixtureSetUp()
		{
			base.FixtureSetUp();
			SD.Services.AddService(typeof(IProjectService), MockRepository.GenerateStrictMock<IProjectService>());
			SD.ProjectService.Stub(s => s.CurrentProject).Return(null);
			
			tagProvider = new SharpDevelopStringTagProvider();
		}
Пример #2
0
		public void Init()
		{
			project = new MockProjectForTagProvider();
			project.FileName = @"C:\Projects\MyProject\MyProject.csproj";
			project.Directory = @"C:\Projects\MyProject";
			project.OutputAssemblyFullPath = @"C:\Projects\MyProject\bin\Debug\MyProject.exe";
			project.Name = "MyProject";
			
			ProjectService.CurrentProject = project;
			tagProvider = new SharpDevelopStringTagProvider();
		}
Пример #3
0
		public override void FixtureSetUp()
		{
			base.FixtureSetUp();
			project = MockRepository.GenerateStrictMock<IProject>();
			project.Stub(p => p.FileName).Return(FileName.Create(@"C:\Projects\MyProject\MyProject.csproj"));
			project.Stub(p => p.Directory).Return(DirectoryName.Create(@"C:\Projects\MyProject"));
			project.Stub(p => p.OutputAssemblyFullPath).Return(FileName.Create(@"C:\Projects\MyProject\bin\Debug\MyProject.exe"));
			project.Stub(p => p.Name).Return("MyProject");
			
			var projectService = MockRepository.GenerateStrictMock<IProjectService>();
			projectService.Stub(p => p.CurrentProject).Return(project);
			SD.Services.AddService(typeof(IProjectService), projectService);
			
			tagProvider = new SharpDevelopStringTagProvider();
		}
		public void Init()
		{
			ProjectService.CurrentProject = null;
			tagProvider = new SharpDevelopStringTagProvider();
		}