Fixed: Memory leak in Ensure.That

This commit is contained in:
kayone
2013-11-30 15:53:07 -08:00
parent f1f13e6248
commit a7d5b3761b
15 changed files with 93 additions and 91 deletions

View File

@@ -12,7 +12,7 @@ namespace NzbDrone.Common.Test.EnsureTest
public void EnsureWindowsPath(string path)
{
WindowsOnly();
Ensure.That(() => path).IsValidPath();
Ensure.That(path, () => path).IsValidPath();
}
@@ -20,7 +20,7 @@ namespace NzbDrone.Common.Test.EnsureTest
public void EnsureLinuxPath(string path)
{
LinuxOnly();
Ensure.That(() => path).IsValidPath();
Ensure.That(path, () => path).IsValidPath();
}
}
}