mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
better process.start for mono
This commit is contained in:
parent
aee7019ed2
commit
435904bc0a
12 changed files with 34 additions and 45 deletions
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Diagnostics;
|
||||
using Moq;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Common;
|
||||
|
@ -33,10 +32,7 @@ namespace NzbDrone.Update.Test
|
|||
|
||||
Subject.Start(AppType.Service, targetFolder);
|
||||
|
||||
Mocker.GetMock<IProcessProvider>().Verify(c => c.Start(It.Is<ProcessStartInfo>(s =>
|
||||
s.FileName == "c:\\NzbDrone\\NzbDrone.Console.exe" &&
|
||||
s.Arguments == StartupArguments.NO_BROWSER
|
||||
)), Times.Once());
|
||||
Mocker.GetMock<IProcessProvider>().Verify(c => c.Start("c:\\NzbDrone\\NzbDrone.Console.exe", StartupArguments.NO_BROWSER, null, null), Times.Once());
|
||||
|
||||
ExceptionVerification.ExpectedWarns(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue