|
|
@ -1,8 +1,11 @@
|
|
|
|
using FluentAssertions;
|
|
|
|
using FluentAssertions;
|
|
|
|
using NUnit.Framework;
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
|
|
|
using NzbDrone.Core.Indexers;
|
|
|
|
using NzbDrone.Core.IndexerSearch;
|
|
|
|
using NzbDrone.Core.IndexerSearch;
|
|
|
|
using NzbDrone.Core.MediaFiles.Commands;
|
|
|
|
using NzbDrone.Core.MediaFiles.Commands;
|
|
|
|
using NzbDrone.Core.Messaging.Commands;
|
|
|
|
using NzbDrone.Core.Messaging.Commands;
|
|
|
|
|
|
|
|
using NzbDrone.Core.Update.Commands;
|
|
|
|
|
|
|
|
using NzbDrone.SignalR;
|
|
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Test.Messaging.Commands
|
|
|
|
namespace NzbDrone.Core.Test.Messaging.Commands
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -71,5 +74,24 @@ namespace NzbDrone.Core.Test.Messaging.Commands
|
|
|
|
|
|
|
|
|
|
|
|
CommandEqualityComparer.Instance.Equals(command1, command2).Should().BeFalse();
|
|
|
|
CommandEqualityComparer.Instance.Equals(command1, command2).Should().BeFalse();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
public void should_return_false_when_only_one_has_null_property()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var command1 = new BroadcastSignalRMessage(null);
|
|
|
|
|
|
|
|
var command2 = new BroadcastSignalRMessage(new SignalRMessage());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CommandEqualityComparer.Instance.Equals(command1, command2).Should().BeFalse();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
public void should_return_false_when_commands_are_diffrent_types()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CommandEqualityComparer.Instance.Equals(new RssSyncCommand(), new ApplicationUpdateCommand()).Should().BeFalse();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|