public void Create_Message() { var message = NSubstitute.Substitute.For<IReceivedMessageInternal>(); var test = new RedisMessage("1", message, false); Assert.Equal(message, test.Message); Assert.Equal("1", test.MessageId); }
public void Create_Null_Message_Expired_True() { var test = new RedisMessage("1", null, true); Assert.True(test.Expired); }
public void Create_Null_Message_Expired_False() { var test = new RedisMessage("1", null, false); Assert.False(test.Expired); }
public void Create_Null_Message_OK() { var test = new RedisMessage(null, null, false); Assert.Null(test.Message); }