mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-27 22:56:45 -04:00
@@ -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)
|
||||
{
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user