public void Should_invalidate_if_key_is_not_a_string() { sut.Invalidate(123); A.CallTo(() => pubsub.Publish(A <InvalidateMessage> .That.Matches(x => x.CacheKey == "a-key"), true)) .MustNotHaveHappened(); }
public void Should_invalidate_if_key_is_not_a_string() { sut.Invalidate(123); A.CallTo(() => pubsub.Publish("CacheInvalidations", A <string> .Ignored, true)).MustNotHaveHappened(); }
public void Should_invalidate_if_key_is_not_a_string() { sut.Invalidate(123); pubsub.Verify(x => x.Publish("CacheInvalidations", It.IsAny <string>(), true), Times.Never()); }