Reformat and apply Stylecop rules

This commit is contained in:
ta264
2019-12-22 22:08:53 +00:00
committed by Qstick
parent d4fa9b7345
commit f02fa629cc
1186 changed files with 7105 additions and 5616 deletions
+3 -10
View File
@@ -11,15 +11,12 @@ namespace NzbDrone.Update.Test
[TestFixture]
public class ProgramFixture : TestBase<UpdateApp>
{
[Test]
public void should_throw_if_null_passed_in()
{
Assert.Throws<ArgumentOutOfRangeException>(() => Subject.Start(null));
}
[TestCase("d", "")]
[TestCase("", "")]
[TestCase("0", "")]
@@ -34,18 +31,14 @@ namespace NzbDrone.Update.Test
[Test]
public void should_call_update_with_correct_path()
{
var ProcessPath = @"C:\Radarr\radarr.exe".AsOsAgnostic();
var processPath = @"C:\Radarr\radarr.exe".AsOsAgnostic();
Mocker.GetMock<IProcessProvider>().Setup(c => c.GetProcessById(12))
.Returns(new ProcessInfo() { StartPath = ProcessPath });
Subject.Start(new[] { "12", "", ProcessPath });
.Returns(new ProcessInfo() { StartPath = processPath });
Subject.Start(new[] { "12", "", processPath });
Mocker.GetMock<IInstallUpdateService>().Verify(c => c.Start(@"C:\Radarr".AsOsAgnostic(), 12), Times.Once());
}
}
}