Fixed failing tests on Mono

Test case unicode characters in escaped format
This commit is contained in:
Björn Dahlgren 2015-11-10 23:24:41 +01:00
commit 994e2a6c57
5 changed files with 14 additions and 8 deletions

View file

@ -32,18 +32,18 @@ namespace NzbDrone.Update.Test
}
[Test]
public void should_call_update_with_corret_path()
public void should_call_update_with_correct_path()
{
const string ProcessPath = @"C:\NzbDrone\nzbdrone.exe";
var ProcessPath = @"C:\NzbDrone\nzbdrone.exe".AsOsAgnostic();
Mocker.GetMock<IProcessProvider>().Setup(c => c.GetProcessById(12))
.Returns(new ProcessInfo() { StartPath = ProcessPath });
Subject.Start(new[] { "12", "" });
Subject.Start(new[] { "12", "", ProcessPath });
Mocker.GetMock<IInstallUpdateService>().Verify(c => c.Start(@"C:\NzbDrone", 12), Times.Once());
Mocker.GetMock<IInstallUpdateService>().Verify(c => c.Start(@"C:\NzbDrone".AsOsAgnostic(), 12), Times.Once());
}