public void MergeAction(RedisPubSubCacheMessage <int> existingMessage, RedisPubSubCacheMessage <int> newMessage,
                                RedisPubSubCacheMessage <int> expectedMergedMessage)
        {
            RedisPubSubCacheHelpers.MergeAction(existingMessage, newMessage);

            Assert.That(existingMessage, Is.EqualTo(expectedMergedMessage));
        }
 public void MergeAction_NullNewMessage()
 {
     Assert.That(
         () => RedisPubSubCacheHelpers.MergeAction(new RedisPubSubCacheMessage <int>(RedisPubSubCacheMessageAction.Remove), null),
         Throws.TypeOf <ArgumentNullException>().And.Property("ParamName").EqualTo("newMessage")
         );
 }