public void Init()
		{
			workbench = new MockWorkbench();
			window = new WixDocumentWindow(workbench);
			
			document = new WixDocument();
			document.FileName = @"d:\Projects\Test\Files.wxs";
			
			MockViewContent view = new MockViewContent();
			view.SetFileName(@"d:\projects\test\files.wxs");
			workbench.ActiveViewContent = view;
		}
示例#2
0
		public PackageFilesView(WixProject project, 
			IWorkbench workbench, 
			IWixPackageFilesControl packageFilesControl,
			WixTextWriter wixTextWriter)
		{
			this.packageFilesControl = packageFilesControl;
			packageFilesControl.DirtyChanged += delegate { base.RaiseIsDirtyChanged(); };
			SetLocalizedTitle("${res:ICSharpCode.WixBinding.PackageFilesView.Title}");
			this.project = project;
			
			this.workbench = workbench;
			wixDocumentWindow = new WixDocumentWindow(workbench);
			workbench.ActiveViewContentChanged += ActiveViewContentChanged;
			
			this.wixTextWriter = wixTextWriter;
			
			openTextEditors = new OpenTextEditors(workbench);
		}
        public PackageFilesView(WixProject project,
                                IWorkbench workbench,
                                IWixPackageFilesControl packageFilesControl,
                                WixTextWriter wixTextWriter)
        {
            this.packageFilesControl          = packageFilesControl;
            packageFilesControl.DirtyChanged += delegate { base.RaiseIsDirtyChanged(); };
            SetLocalizedTitle("${res:ICSharpCode.WixBinding.PackageFilesView.Title}");
            this.project = project;

            this.workbench    = workbench;
            wixDocumentWindow = new WixDocumentWindow(workbench);
            workbench.ActiveViewContentChanged += ActiveViewContentChanged;

            this.wixTextWriter = wixTextWriter;

            openTextEditors = new OpenTextEditors(workbench);
        }
		public void CheckThatWixDocumentWindowIsActiveReturnsTrueForWixDocumentUsedWhenSettingUpTest()
		{
			WixDocumentWindow window = new WixDocumentWindow(workbench);
			Assert.IsTrue(window.IsActive(document));
		}