/// <summary>
 /// Loads the Wix document containing the directory information and displays it.
 /// </summary>
 public void ShowFiles(WixProject project, ITextFileReader fileReader, IWixDocumentWriter documentWriter)
 {
     this.project = project;
     editor       = new WixPackageFilesEditor(this, fileReader, documentWriter);
     editor.ExcludedItems.AddRange(GetExcludedItems());
     editor.ShowFiles(project);
 }
		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);
		}
		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);
		}
		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;
		}
		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);
		}
		/// <summary>
		/// Loads the Wix document containing the directory information and displays it.
		/// </summary>
		public void ShowFiles(WixProject project, ITextFileReader fileReader, IWixDocumentWriter documentWriter)
		{
			this.project = project;
			editor = new WixPackageFilesEditor(this, fileReader, documentWriter);
			editor.ExcludedItems.AddRange(GetExcludedItems());
			editor.ShowFiles(project);
		}