mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
parent
a602611a5f
commit
a4b78b44ce
1307 changed files with 8702 additions and 7403 deletions
|
@ -35,7 +35,6 @@ namespace NzbDrone.Common.Test
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
private void CleanupService()
|
||||
{
|
||||
if (Subject.ServiceExist(TEMP_SERVICE_NAME))
|
||||
|
@ -61,7 +60,6 @@ namespace NzbDrone.Common.Test
|
|||
Subject.ServiceExist("random_service_name").Should().BeFalse();
|
||||
}
|
||||
|
||||
|
||||
[Test]
|
||||
public void Service_should_be_installed_and_then_uninstalled()
|
||||
{
|
||||
|
@ -121,7 +119,6 @@ namespace NzbDrone.Common.Test
|
|||
Subject.Start(ALWAYS_INSTALLED_SERVICE);
|
||||
Assert.Throws<InvalidOperationException>(() => Subject.Start(ALWAYS_INSTALLED_SERVICE));
|
||||
|
||||
|
||||
ExceptionVerification.ExpectedWarns(1);
|
||||
}
|
||||
|
||||
|
@ -131,15 +128,14 @@ namespace NzbDrone.Common.Test
|
|||
Subject.GetService(ALWAYS_INSTALLED_SERVICE).Status
|
||||
.Should().NotBe(ServiceControllerStatus.Running);
|
||||
|
||||
|
||||
Subject.Stop(ALWAYS_INSTALLED_SERVICE);
|
||||
|
||||
|
||||
Subject.GetService(ALWAYS_INSTALLED_SERVICE).Status
|
||||
.Should().Be(ServiceControllerStatus.Stopped);
|
||||
|
||||
ExceptionVerification.ExpectedWarns(1);
|
||||
}
|
||||
|
||||
private static bool IsAnAdministrator()
|
||||
{
|
||||
var principal = new WindowsPrincipal(WindowsIdentity.GetCurrent());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue