public void Init()
		{
			SD.InitializeForUnitTests();
			textEditor = new MockTextEditor();
			MockTextEditorViewContent viewContent = new MockTextEditorViewContent();
			viewContent.TextEditor = textEditor;
			viewContent.SetFileName(@"d:\projects\test\file.wxs");
			
			workbench = new MockWorkbench();
			workbench.ViewContentCollection.Add(viewContent);
			
			MockTextEditorOptions textEditorOptions = new MockTextEditorOptions();
			MockXmlTextWriter xmlTextWriter = new MockXmlTextWriter(textEditorOptions);
			WixProject project = WixBindingTestsHelper.CreateEmptyWixProject();
			document = new WixDocument(project, new DefaultFileLoader());
			document.LoadXml(GetWixXml());
			document.FileName = @"d:\projects\test\File.wxs";
			textEditor.Document.Text = GetWixXml();
			
			MockWixPackageFilesControl packageFilesControl = new MockWixPackageFilesControl();
			packageFilesView = new PackageFilesView(project, workbench, packageFilesControl, xmlTextWriter);
			
			packageFilesControl.IsDirty = true;
			AddNewChildElementsToDirectory();
			packageFilesView.Write(document);
		}
コード例 #2
0
		public void Init()
		{
			project = WixBindingTestsHelper.CreateEmptyWixProject();
			factory = new MockPackageFilesViewFactory();
			workbench = new MockWorkbench();
			
			view = factory.Create(project, workbench);
		}
コード例 #3
0
		public void Init()
		{
			workbench = new MockWorkbench();
			project = WixBindingTestsHelper.CreateEmptyWixProject();
			packageFilesView = new PackageFilesView(project, workbench);
			
			workbench.ActiveViewContent = packageFilesView;
		}
コード例 #4
0
		public void Init()
		{
			workbench = new MockWorkbench();
			factory = new MockPackageFilesViewFactory();
			project = WixBindingTestsHelper.CreateEmptyWixProject();
			
			ViewSetupFilesCommand viewCommand = new ViewSetupFilesCommand(factory, workbench);
			viewCommand.Run(project);
		}
		public void Init()
		{
			workbench = new MockWorkbench();
			
			CreatePackageFilesViewWithDifferentWixProject();
			CreatePackageFilesViewWithProjectToBeUsedWithViewSetupFilesCommandRunMethod();
			
			factory = new MockPackageFilesViewFactory();
			ViewSetupFilesCommand viewCommand = new ViewSetupFilesCommand(factory, workbench);
			viewCommand.Run(project);
		}
コード例 #6
0
		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;
		}
コード例 #7
0
		public void Init()
		{
			project = WixBindingTestsHelper.CreateEmptyWixProject();
			mockWorkbench = new MockWorkbench();
			mockPackageFilesControl = new MockWixPackageFilesControl();
			textEditorOptions = new MockTextEditorOptions();
			textEditorOptions.ConvertTabsToSpaces = false;
			
			xmlTextWriter = new MockXmlTextWriter(textEditorOptions);
			packageFilesView = new PackageFilesView(project, mockWorkbench, mockPackageFilesControl, xmlTextWriter);
			
			mockWorkbench.ActiveContent = packageFilesView;
			
			document = new WixDocument(project, new DefaultFileLoader());
		}
コード例 #8
0
		public void Init()
		{
			existingTextEditor = new MockTextEditor();
			MockTextEditorViewContent viewContent = new MockTextEditorViewContent();
			viewContent.TextEditor = existingTextEditor;
			viewContent.SetFileName(@"d:\projects\test\file.wxs");
			
			workbench = new MockWorkbench();
			workbench.ViewContentCollection.Add(new MockViewContent());
			workbench.ViewContentCollection.Add(viewContent);
			
			document = new WixDocument();
			document.FileName = @"d:\Projects\Test\File.wxs";
			
			openEditors = new OpenTextEditors(workbench);
		}
		public void Init()
		{
			viewWithOpenWixDocument = new MockTextEditorViewContent();
			viewWithOpenWixDocument.SetFileName(@"d:\projects\test\a.wxs");
			
			workbench = new MockWorkbench();
			workbench.ViewContentCollection.Add(viewWithOpenWixDocument);
			
			document = new WixDocument();
			document.FileName = @"d:\projects\test\a.wxs";
			
			packageFilesControl = new MockWixPackageFilesControl();
			packageFilesControl.Document = document;
			
			project = WixBindingTestsHelper.CreateEmptyWixProject();
			packageFilesView = new PackageFilesView(project, workbench, packageFilesControl);
			
			AfterInit();
		}
コード例 #10
0
		public void Init()
		{
			SD.InitializeForUnitTests();
			workbench = new MockWorkbench();
		}
コード例 #11
0
		public void Init()
		{
			SD.InitializeForUnitTests();
			workbench = new MockWorkbench();
			activePackageFilesView = new ActivePackageFilesView(workbench);
		}
コード例 #12
0
		public void Init()
		{
			workbench = new MockWorkbench();
		}