Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3567 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
11 changed files with 87 additions and 3 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,60 @@ |
|||||||
|
// <file>
|
||||||
|
// <copyright see="prj:///doc/copyright.txt"/>
|
||||||
|
// <license see="prj:///doc/license.txt"/>
|
||||||
|
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
|
||||||
|
// <version>$Revision$</version>
|
||||||
|
// </file>
|
||||||
|
|
||||||
|
using ICSharpCode.SharpDevelop.Project; |
||||||
|
using ICSharpCode.WixBinding; |
||||||
|
using NUnit.Framework; |
||||||
|
using System; |
||||||
|
using System.IO; |
||||||
|
using WixBinding.Tests.Utils; |
||||||
|
|
||||||
|
namespace WixBinding.Tests.PackageFiles |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Tests that the package editor will display an error message indicating that no target directory
|
||||||
|
/// could be found the WiX files. Previously the editor would display an error message that
|
||||||
|
/// there were no WiX files - SD2-1349.
|
||||||
|
/// </summary>
|
||||||
|
[TestFixture] |
||||||
|
public class NoRootDirectoryFoundFixture : PackageFilesTestFixtureBase |
||||||
|
{ |
||||||
|
[TestFixtureSetUp] |
||||||
|
public void SetUpFixture() |
||||||
|
{ |
||||||
|
base.InitFixture(); |
||||||
|
} |
||||||
|
|
||||||
|
[Test] |
||||||
|
public void NoSourceFileFoundErrorNotShown() |
||||||
|
{ |
||||||
|
Assert.IsFalse(view.IsNoSourceFileFoundMessageDisplayed); |
||||||
|
} |
||||||
|
|
||||||
|
[Test] |
||||||
|
public void NoRootDirectoryFoundMessageIsShown() |
||||||
|
{ |
||||||
|
Assert.IsTrue(view.IsNoRootDirectoryFoundMessageDisplayed); |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Deliberately use WiX 2.0's namespace so the test fixture will not find any
|
||||||
|
/// target directory element.
|
||||||
|
/// </summary>
|
||||||
|
protected override string GetWixXml() |
||||||
|
{ |
||||||
|
return "<Wix xmlns=\"http://schemas.microsoft.com/wix/2003/1/wi\">\r\n" + |
||||||
|
"\t<Product Name=\"MySetup\" \r\n" + |
||||||
|
"\t Manufacturer=\"\" \r\n" + |
||||||
|
"\t Id=\"F4A71A3A-C271-4BE8-B72C-F47CC956B3AA\" \r\n" + |
||||||
|
"\t Language=\"1033\" \r\n" + |
||||||
|
"\t Version=\"1.0.0.0\">\r\n" + |
||||||
|
"\t\t<Package Id=\"6B8BE64F-3768-49CA-8BC2-86A76424DFE9\"/>\r\n" + |
||||||
|
"\t</Product>\r\n" + |
||||||
|
"</Wix>"; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
Binary file not shown.
Loading…
Reference in new issue