Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
CharliePoole committed Nov 14, 2015
1 parent bb2e37b commit b64aabc
Showing 1 changed file with 5 additions and 6 deletions.
Expand Up @@ -70,7 +70,10 @@ public void CanCreateDomain()
[Test, Platform("Linux,Net", Reason = "get_SetupInformation() fails on Windows+Mono")]
public void CanCreateDomainWithApplicationBaseSpecified()
{
string basePath = Path.GetDirectoryName(Path.GetDirectoryName(Path.GetDirectoryName(_package.FullName)));
string assemblyDir = Path.GetDirectoryName(_package.FullName);
string basePath = Path.GetDirectoryName(Path.GetDirectoryName(assemblyDir));
string relPath = assemblyDir.Substring(basePath.Length + 1);

_package.Settings["BasePath"] = basePath;
var domain = _domainManager.CreateDomain(_package);

Expand All @@ -83,11 +86,7 @@ public void CanCreateDomainWithApplicationBaseSpecified()
Path.GetFileName(setup.ConfigurationFile),
Is.EqualTo("mock-nunit-assembly.exe.config").IgnoreCase,
"ConfigurationFile");
#if DEBUG
Assert.That(setup.PrivateBinPath, Is.SamePath(@"bin\Debug"), "PrivateBinPath");
#else
Assert.That(setup.PrivateBinPath, Is.SamePath(@"bin\Release"), "PrivateBinPath");
#endif
Assert.That(setup.PrivateBinPath, Is.SamePath(relPath), "PrivateBinPath");
Assert.That(setup.ShadowCopyFiles, Is.Null.Or.EqualTo("false"));
}

Expand Down

0 comments on commit b64aabc

Please sign in to comment.