* 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
@@ -49,9 +49,9 @@ namespace NzbDrone.Common.Test
[TestCase("", "", 0)]
[TestCase("abcdef", "de", 1)]
[TestCase("abcdef", "defy", 0.75)]
[TestCase("abcdef", "abcdefghk", 6.0/9)]
[TestCase("abcdef", "zabcdefz", 6.0/8)]
[TestCase("plusifeelneedforredundantinformationintitlefield", "anthology", 4.0/9)]
[TestCase("abcdef", "abcdefghk", 6.0 / 9)]
[TestCase("abcdef", "zabcdefz", 6.0 / 8)]
[TestCase("plusifeelneedforredundantinformationintitlefield", "anthology", 4.0 / 9)]
[TestCase("+ (Plus) - I feel the need for redundant information in the title field", "+", 1)]
public void FuzzyContains(string text, string pattern, double expectedScore)
{
@@ -56,7 +56,7 @@ namespace NzbDrone.Common.Test.ExtensionTests.IEnumerableExtensionTests
var result = first.ExceptBy(o => o.Prop1, second, o => o.Prop1, StringComparer.InvariantCultureIgnoreCase).ToList();
result.Should().HaveCount(1);
result.First().GetType().Should().Be(typeof (Object1));
result.First().GetType().Should().Be(typeof(Object1));
result.First().Prop1.Should().Be("two");
}
}
@@ -24,7 +24,6 @@ namespace NzbDrone.Common.Test.ExtensionTests
public void should_return_false_for_public_ip_address(string ipAddress)
{
IPAddress.Parse(ipAddress).IsLocalAddress().Should().BeFalse();
}
}
}
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentAssertions;
using FluentAssertions;
using NUnit.Framework;
using NzbDrone.Common.Extensions;