* Stylecop Rules and Fixes
This commit is contained in:
Qstick
2020-01-03 07:49:24 -05:00
committed by GitHub
parent 63d669178d
commit f77a2feeef
1307 changed files with 8704 additions and 7404 deletions
@@ -14,7 +14,7 @@ using NzbDrone.Mono.Disk;
namespace NzbDrone.Mono.Test.DiskProviderTests
{
[TestFixture]
[Platform(Exclude="Win")]
[Platform(Exclude = "Win")]
public class DiskProviderFixture : DiskProviderFixtureBase<DiskProvider>
{
public DiskProviderFixture()
@@ -30,7 +30,6 @@ namespace NzbDrone.Mono.Test.DiskProviderTests
}
// Remove Write permissions, we're still owner so we can clean it up, but we'll have to do that explicitly.
var entry = UnixFileSystemInfo.GetFileSystemEntry(path);
if (writable)
@@ -101,7 +100,8 @@ namespace NzbDrone.Mono.Test.DiskProviderTests
Mocker.GetMock<IProcMountProvider>()
.Setup(v => v.GetMounts())
.Returns(new List<IMount> {
.Returns(new List<IMount>
{
new ProcMount(DriveType.Fixed, rootDir, rootDir, "myfs", new MountOptions(new Dictionary<string, string>()))
});
}
@@ -1,13 +1,13 @@
using FluentAssertions;
using Moq;
using NUnit.Framework;
using NzbDrone.Common.Test.DiskTests;
using NzbDrone.Mono.Disk;
using NUnit.Framework;
using FluentAssertions;
namespace NzbDrone.Mono.Test.DiskProviderTests
{
[TestFixture]
[Platform(Exclude="Win")]
[Platform(Exclude = "Win")]
public class FreeSpaceFixture : FreeSpaceFixtureBase<DiskProvider>
{
public FreeSpaceFixture()
@@ -1,4 +1,3 @@
using System;
using FluentAssertions;
using NUnit.Framework;
using NzbDrone.Common.EnvironmentInfo;
@@ -1,5 +1,4 @@
using System;
using System.IO;
using System.IO;
using FluentAssertions;
using Moq;
using NUnit.Framework;
@@ -39,7 +38,6 @@ namespace NzbDrone.Mono.Test.EnvironmentInfo.VersionAdapters
versionName.FullName.Should().Be("macOS " + versionString);
}
[TestCase]
public void should_detect_server()
{
@@ -74,4 +72,4 @@ namespace NzbDrone.Mono.Test.EnvironmentInfo.VersionAdapters
.Verify(c => c.GetFiles(It.IsAny<string>(), SearchOption.TopDirectoryOnly), Times.Never());
}
}
}
}
@@ -37,7 +37,6 @@ namespace NzbDrone.Mono.Test.EnvironmentInfo.VersionAdapters
Subject.Read().Should().BeNull();
}
[Test]
public void should_return_null_if_release_file_doestn_exist()
{
@@ -76,7 +75,6 @@ namespace NzbDrone.Mono.Test.EnvironmentInfo.VersionAdapters
version.Name.Should().Be("ubuntu");
version.Version.Should().Be("14.04");
version.FullName.Should().Be("Ubuntu 14.04.5 LTS");
}
}
}