New: Readarr 0.1

This commit is contained in:
ta264
2020-05-06 21:14:11 +01:00
parent 476f2d6047
commit 08496c82af
911 changed files with 14837 additions and 24442 deletions
@@ -36,8 +36,8 @@ namespace NzbDrone.Core.Test.Messaging.Commands
[Test]
public void should_return_true_when_single_property_matches()
{
var command1 = new AlbumSearchCommand { AlbumIds = new List<int> { 1 } };
var command2 = new AlbumSearchCommand { AlbumIds = new List<int> { 1 } };
var command1 = new AlbumSearchCommand { BookIds = new List<int> { 1 } };
var command2 = new AlbumSearchCommand { BookIds = new List<int> { 1 } };
CommandEqualityComparer.Instance.Equals(command1, command2).Should().BeTrue();
}
@@ -45,8 +45,8 @@ namespace NzbDrone.Core.Test.Messaging.Commands
[Test]
public void should_return_false_when_single_property_doesnt_match()
{
var command1 = new AlbumSearchCommand { AlbumIds = new List<int> { 1 } };
var command2 = new AlbumSearchCommand { AlbumIds = new List<int> { 2 } };
var command1 = new AlbumSearchCommand { BookIds = new List<int> { 1 } };
var command2 = new AlbumSearchCommand { BookIds = new List<int> { 2 } };
CommandEqualityComparer.Instance.Equals(command1, command2).Should().BeFalse();
}
@@ -55,7 +55,7 @@ namespace NzbDrone.Core.Test.Messaging.Commands
public void should_return_false_when_only_one_has_properties()
{
var command1 = new ArtistSearchCommand();
var command2 = new ArtistSearchCommand { ArtistId = 2 };
var command2 = new ArtistSearchCommand { AuthorId = 2 };
CommandEqualityComparer.Instance.Equals(command1, command2).Should().BeFalse();
}
@@ -78,8 +78,8 @@ namespace NzbDrone.Core.Test.Messaging.Commands
[Test]
public void should_return_false_when_commands_list_are_different_lengths()
{
var command1 = new AlbumSearchCommand { AlbumIds = new List<int> { 1 } };
var command2 = new AlbumSearchCommand { AlbumIds = new List<int> { 1, 2 } };
var command1 = new AlbumSearchCommand { BookIds = new List<int> { 1 } };
var command2 = new AlbumSearchCommand { BookIds = new List<int> { 1, 2 } };
CommandEqualityComparer.Instance.Equals(command1, command2).Should().BeFalse();
}
@@ -87,8 +87,8 @@ namespace NzbDrone.Core.Test.Messaging.Commands
[Test]
public void should_return_false_when_commands_list_dont_match()
{
var command1 = new AlbumSearchCommand { AlbumIds = new List<int> { 1 } };
var command2 = new AlbumSearchCommand { AlbumIds = new List<int> { 2 } };
var command1 = new AlbumSearchCommand { BookIds = new List<int> { 1 } };
var command2 = new AlbumSearchCommand { BookIds = new List<int> { 2 } };
CommandEqualityComparer.Instance.Equals(command1, command2).Should().BeFalse();
}