public void SetUpFixture() { SD.InitializeForUnitTests(); WixBindingTestsHelper.RegisterResourceStringsWithSharpDevelopResourceManager(); wixProject = WixBindingTestsHelper.CreateEmptyWixProject(); parentNode = new TreeNode(); WixProjectNodeBuilder builder = new WixProjectNodeBuilder(); wixProjectNode = builder.AddProjectNode(parentNode, wixProject) as ProjectNode; foreach (TreeNode node in wixProjectNode.Nodes) { if (node is WixLibraryFolderNode) { wixLibraryFolderNode = node as WixLibraryFolderNode; } else if (node is WixExtensionFolderNode) { wixExtensionFolderNode = node as WixExtensionFolderNode; } } foreach (TreeNode node in wixProjectNode.Nodes) { referenceFolderNode = node as ReferenceFolder; if (referenceFolderNode != null) { break; } } }
public void SetUpFixture() { ResourceManager rm = new ResourceManager("WixBinding.Tests.Strings", GetType().Assembly); ResourceService.RegisterNeutralStrings(rm); wixProject = WixBindingTestsHelper.CreateEmptyWixProject(); parentNode = new TreeNode(); WixProjectNodeBuilder builder = new WixProjectNodeBuilder(); wixProjectNode = builder.AddProjectNode(parentNode, wixProject) as ProjectNode; foreach (TreeNode node in wixProjectNode.Nodes) { if (node is WixLibraryFolderNode) { wixLibraryFolderNode = node as WixLibraryFolderNode; } else if (node is WixExtensionFolderNode) { wixExtensionFolderNode = node as WixExtensionFolderNode; } } foreach (TreeNode node in wixProjectNode.Nodes) { referenceFolderNode = node as ReferenceFolder; if (referenceFolderNode != null) { break; } } }