mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-25 22:36:59 -04:00
New: Readarr 0.1
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user