コード例 #1
0
        public void SetUpFixture()
        {
            WixProject p = WixBindingTestsHelper.CreateEmptyWixProject();

            p.Name = "MySetup";
            view   = new MockWixPackageFilesView();
            view.ContextMenuEnabled = true;
            WixPackageFilesEditor editor = new WixPackageFilesEditor(view, this, this);

            editor.ShowFiles(p);
        }
コード例 #2
0
        public void InitFixture()
        {
            project      = WixBindingTestsHelper.CreateEmptyWixProject();
            project.Name = "MySetup";
            FileProjectItem item = new FileProjectItem(project, ItemType.Compile);

            item.Include = "Setup.wxs";
            ProjectService.AddProjectItem(project, item);
            view   = new MockWixPackageFilesView();
            editor = new WixPackageFilesEditor(view, this, this, this);
            editor.ShowFiles(project);
        }
コード例 #3
0
        public void SetUpFixture()
        {
            WixProject p = WixBindingTestsHelper.CreateEmptyWixProject();

            p.Name = "MySetup";
            FileProjectItem item = new FileProjectItem(p, ItemType.Compile);

            item.Include = "Setup.wxs";
            ProjectService.AddProjectItem(p, item);
            view = new MockWixPackageFilesView();
            WixPackageFilesEditor editor = new WixPackageFilesEditor(view, this, this);

            editor.ShowFiles(p);
            expectedWixDocumentFileName = item.FileName;
            wixDocumentFileName         = editor.Document.FileName;
        }
コード例 #4
0
        public void SetUpFixture()
        {
            SD.InitializeForUnitTests();
            WixProject p = WixBindingTestsHelper.CreateEmptyWixProject();

            p.Name = "MySetup";
            FileProjectItem item = new FileProjectItem(p, ItemType.Compile);

            item.Include = "Setup.wxs";
            ProjectService.AddProjectItem(p, item);

            item         = new FileProjectItem(p, ItemType.Compile);
            item.Include = "Files.wxs";
            ProjectService.AddProjectItem(p, item);

            view = new MockWixPackageFilesView();
            WixPackageFilesEditor editor = new WixPackageFilesEditor(view, this, this);

            editor.ShowFiles(p);
        }