public void SetUp() { fileController = MockRepository.GenerateMock <IFileController>(); fileController.Stub(f => f.DirectoryExists("Folder")).Return(true); fileController.Stub(f => f.CanCreateFilesIn("Folder")).Return(true); project = MockRepository.GenerateStub <IDesignerProject>(); project.ProjectName = "Project"; project.Stub(p => p.Namespaces).Return(new List <string>()); project.Stub(p => p.References).Return(new List <ReferencedFile>().AsReadOnly()); }
public void SetUp() { fileController = MockRepository.GenerateMock<IFileController>(); project = MockRepository.GenerateStub<IDesignerProject>(); project.ProjectName = "Test"; project.ProjectDescription = "Desc"; project.DebugProjectFile = "debug.wbproj"; project.Stub(p => p.GetCompiledDLLDirectory()).Return("temp-compile"); project.Stub(p => p.GetPathRelativeToProjectFile("debug.wbproj")).Return("debug.wbproj"); project.Stub(p => p.GetPathRelativeToProjectFile("test gen")).Return("test gen"); project.Version = "1.2.3.2.1"; project.TestGenerateDirectory = "test gen"; project.Stub(p => p.Namespaces).Return(new List<string>()); project.Stub(p => p.References).Return(new List<ReferencedFile>().AsReadOnly()); }
public void SetUp() { fileController = MockRepository.GenerateMock <IFileController>(); project = MockRepository.GenerateStub <IDesignerProject>(); project.ProjectName = "Test"; project.ProjectDescription = "Desc"; project.DebugProjectFile = "debug.wbproj"; project.Stub(p => p.GetCompiledDLLDirectory()).Return("temp-compile"); project.Stub(p => p.GetPathRelativeToProjectFile("debug.wbproj")).Return("debug.wbproj"); project.Stub(p => p.GetPathRelativeToProjectFile("test gen")).Return("test gen"); project.Version = "1.2.3.2.1"; project.TestGenerateDirectory = "test gen"; project.Stub(p => p.Namespaces).Return(new List <string>()); project.Stub(p => p.References).Return(new List <ReferencedFile>().AsReadOnly()); }
public void SetUp() { fileController = MockRepository.GenerateMock<IFileController>(); fileController.Stub(f => f.DirectoryExists("Folder")).Return(true); fileController.Stub(f => f.CanCreateFilesIn("Folder")).Return(true); project = MockRepository.GenerateStub<IDesignerProject>(); project.ProjectName = "Project"; project.Stub(p => p.Namespaces).Return(new List<string>()); project.Stub(p => p.References).Return(new List<ReferencedFile>().AsReadOnly()); }