better process.start for mono

This commit is contained in:
kay.one 2013-08-13 22:20:24 -07:00
commit 435904bc0a
12 changed files with 34 additions and 45 deletions

View file

@ -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);
}