public void OpenCoverSettingsFileName()
        {
            MSBuildBasedProject project = new MSBuildBasedProject(
                new ProjectCreateInformation(MockSolution.Create(), new FileName(@"C:\temp\test.csproj")));

            Assert.AreEqual(@"C:\temp\test.OpenCover.Settings", OpenCoverSettings.GetFileName(project));
        }
        public void SetUpFixture()
        {
            SD.InitializeForUnitTests();
            WixBindingTestsHelper.InitMSBuildEngine();

            // create the project.
            ProjectCreateInformation info = new ProjectCreateInformation(MockSolution.Create(), new FileName(@"C:\Projects\Test\Test.wixproj"));

            wixProject = new WixProjectWithOverriddenSave(info);

            // Add wix library item.
            wixLibraryItem         = new WixLibraryProjectItem(wixProject);
            wixLibraryItem.Include = @"..\..\first.wixlib";
            ProjectService.AddProjectItem(wixProject, wixLibraryItem);

            // Run Initialize on the WixLibraryFolderNode, which is
            // equivalent to expanding the node, so it adds it children. Cannot
            // call ExtTreeNode.Expanding since this relies on the tree node
            // being visible.
            WixLibraryFolderNodeTester nodeTester = new WixLibraryFolderNodeTester(wixProject);

            nodeTester.RunInitialize();

            wixLibraryFolderNode = (WixLibraryFolderNode)nodeTester;
            wixLibraryNode       = (WixLibraryNode)wixLibraryFolderNode.Nodes[0];
        }
Exemplo n.º 3
0
 public void SetUpFixture()
 {
     SD.InitializeForUnitTests();
     wixNodeBuilder = new WixProjectNodeBuilder();
     project        = new MSBuildBasedProject(
         new ProjectCreateInformation(MockSolution.Create(), new FileName(@"C:\Projects\Test\test.csproj"))
         );
     project.IdGuid = Guid.Parse("FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF");
 }
Exemplo n.º 4
0
        public void SetUpFixture()
        {
            SD.InitializeForUnitTests();
            WixBindingTestsHelper.InitMSBuildEngine();

            info = new ProjectCreateInformation(MockSolution.Create(), new FileName(@"C:\Projects\Test\Test.wixproj"));
            info.RootNamespace = "Test";

            project = new WixProject(info);
        }
        public void NotMSBuildBasedProject()
        {
            ProjectLoadInformation info = new ProjectLoadInformation(MockSolution.Create(), FileName.Create(@"C:\Projects\Test.proj"), "Test");

            MissingProject          project     = new MissingProject(info);
            ITestProject            testProject = new NUnitTestProject(project);
            NUnitConsoleApplication app         = new NUnitConsoleApplication(new[] { testProject });

            Assert.AreEqual(project.GetType().BaseType, typeof(AbstractProject), "MissingProject should be derived from AbstractProject.");
            Assert.AreEqual(@"D:\SharpDevelop\bin\Tools\NUnit\nunit-console.exe", app.FileName);
        }
 void CreateSolutionCodeCoverageResults()
 {
     solution       = MockSolution.Create();
     fakeFileSystem = MockRepository.GenerateStub <IFileSystem>();
     solutionCodeCoverageResults = new SolutionCodeCoverageResults(solution, fakeFileSystem);
 }
Exemplo n.º 7
0
 public MockCSharpProject()
     : this(MockSolution.Create(), "MyTests")
 {
 }
 public TestProject(string languageName)
     : base(new ProjectCreateInformation(MockSolution.Create(), FileName.Create("c:\\temp\\TestProject.csproj")))
 {
     this.languageName = languageName;
 }