test clean up.
This commit is contained in:
@@ -10,7 +10,7 @@ using NzbDrone.Test.Common.AutoMoq;
|
||||
namespace NzbDrone.Common.Test
|
||||
{
|
||||
[TestFixture]
|
||||
// ReSharper disable InconsistentNaming
|
||||
|
||||
public class ConfigFileProviderTest : TestBase
|
||||
{
|
||||
[SetUp]
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
// ReSharper disable InconsistentNaming
|
||||
|
||||
using System;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using FluentAssertions;
|
||||
@@ -84,11 +82,11 @@ namespace NzbDrone.Common.Test
|
||||
[Test]
|
||||
public void CopyFolder_should_copy_folder()
|
||||
{
|
||||
//Act
|
||||
|
||||
var diskProvider = new DiskProvider();
|
||||
diskProvider.CopyDirectory(BinFolder.FullName, BinFolderCopy.FullName);
|
||||
|
||||
//Assert
|
||||
|
||||
VerifyCopy();
|
||||
}
|
||||
|
||||
@@ -96,7 +94,7 @@ namespace NzbDrone.Common.Test
|
||||
[Test]
|
||||
public void CopyFolder_should_overright_existing_folder()
|
||||
{
|
||||
//Act
|
||||
|
||||
var diskProvider = new DiskProvider();
|
||||
|
||||
diskProvider.CopyDirectory(BinFolder.FullName, BinFolderCopy.FullName);
|
||||
@@ -107,7 +105,7 @@ namespace NzbDrone.Common.Test
|
||||
|
||||
diskProvider.CopyDirectory(BinFolder.FullName, BinFolderCopy.FullName);
|
||||
|
||||
//Assert
|
||||
|
||||
VerifyCopy();
|
||||
}
|
||||
|
||||
@@ -120,10 +118,10 @@ namespace NzbDrone.Common.Test
|
||||
diskProvider.CopyDirectory(BinFolder.FullName, BinFolderMove.FullName);
|
||||
VerifyCopy();
|
||||
|
||||
//Act
|
||||
|
||||
diskProvider.MoveDirectory(BinFolderCopy.FullName, BinFolderMove.FullName);
|
||||
|
||||
//Assert
|
||||
|
||||
VerifyMove();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// ReSharper disable InconsistentNaming
|
||||
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// ReSharper disable InconsistentNaming
|
||||
|
||||
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
@@ -70,7 +70,7 @@ namespace NzbDrone.Common.Test
|
||||
{
|
||||
var startInfo = new ProcessStartInfo(DummyApp.DUMMY_PROCCESS_NAME + ".exe");
|
||||
|
||||
//Act/Assert
|
||||
|
||||
_processProvider.GetProcessByName(DummyApp.DUMMY_PROCCESS_NAME).Should()
|
||||
.BeEmpty("Dummy process is already running");
|
||||
_processProvider.Start(startInfo).Should().NotBeNull();
|
||||
|
||||
@@ -7,7 +7,7 @@ using NzbDrone.Test.Common;
|
||||
namespace NzbDrone.Common.Test
|
||||
{
|
||||
[TestFixture]
|
||||
// ReSharper disable InconsistentNaming
|
||||
|
||||
public class ReportingService_ReportParseError_Fixture : TestBase
|
||||
{
|
||||
[SetUp]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// ReSharper disable InconsistentNaming
|
||||
|
||||
|
||||
using System.ServiceProcess;
|
||||
using FluentAssertions;
|
||||
@@ -43,7 +43,7 @@ namespace NzbDrone.Common.Test
|
||||
[Test]
|
||||
public void Exists_should_find_existing_service()
|
||||
{
|
||||
//Act
|
||||
|
||||
var exists = serviceProvider.ServiceExist(ALWAYS_INSTALLED_SERVICE);
|
||||
|
||||
exists.Should().BeTrue();
|
||||
@@ -52,7 +52,7 @@ namespace NzbDrone.Common.Test
|
||||
[Test]
|
||||
public void Exists_should_not_find_random_service()
|
||||
{
|
||||
//Act
|
||||
|
||||
var exists = serviceProvider.ServiceExist("random_service_name");
|
||||
|
||||
exists.Should().BeFalse();
|
||||
@@ -62,7 +62,7 @@ namespace NzbDrone.Common.Test
|
||||
[Test]
|
||||
public void Service_should_be_installed_and_then_uninstalled()
|
||||
{
|
||||
//Act
|
||||
|
||||
serviceProvider.ServiceExist(TEMP_SERVICE_NAME).Should().BeFalse("Service already installed");
|
||||
serviceProvider.Install(TEMP_SERVICE_NAME);
|
||||
serviceProvider.ServiceExist(TEMP_SERVICE_NAME).Should().BeTrue();
|
||||
@@ -76,7 +76,7 @@ namespace NzbDrone.Common.Test
|
||||
[Explicit]
|
||||
public void UnInstallService()
|
||||
{
|
||||
//Act
|
||||
|
||||
serviceProvider.UnInstall(ServiceProvider.NZBDRONE_SERVICE_NAME);
|
||||
serviceProvider.ServiceExist(ServiceProvider.NZBDRONE_SERVICE_NAME).Should().BeFalse();
|
||||
}
|
||||
@@ -105,10 +105,10 @@ namespace NzbDrone.Common.Test
|
||||
serviceProvider.GetService(ALWAYS_INSTALLED_SERVICE).Status
|
||||
.Should().NotBe(ServiceControllerStatus.Running);
|
||||
|
||||
//Act
|
||||
|
||||
serviceProvider.Stop(ALWAYS_INSTALLED_SERVICE);
|
||||
|
||||
//Assert
|
||||
|
||||
serviceProvider.GetService(ALWAYS_INSTALLED_SERVICE).Status
|
||||
.Should().Be(ServiceControllerStatus.Stopped);
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// ReSharper disable InconsistentNaming
|
||||
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Test.Common;
|
||||
|
||||
Reference in New Issue
Block a user