mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-22 22:14:44 -04:00
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user