Browse Source

Tests fixed

pull/65/head
Sebastian Stehle 9 years ago
parent
commit
5be2597fe1
  1. 6
      tests/Squidex.Infrastructure.Tests/Caching/InvalidatingMemoryCacheTest.cs

6
tests/Squidex.Infrastructure.Tests/Caching/InvalidatingMemoryCacheTest.cs

@ -63,7 +63,7 @@ namespace Squidex.Infrastructure.Caching
{
sut.Invalidate(123);
pubsub.Verify(x => x.Publish("CacheInvalidations", It.IsAny<string>(), false), Times.Never());
pubsub.Verify(x => x.Publish("CacheInvalidations", It.IsAny<string>(), true), Times.Never());
}
[Fact]
@ -71,7 +71,7 @@ namespace Squidex.Infrastructure.Caching
{
sut.Invalidate("a-key");
pubsub.Verify(x => x.Publish("CacheInvalidations", "a-key", false), Times.Once());
pubsub.Verify(x => x.Publish("CacheInvalidations", "a-key", true), Times.Once());
}
[Fact]
@ -79,7 +79,7 @@ namespace Squidex.Infrastructure.Caching
{
((IMemoryCache)sut).Invalidate("a-key");
pubsub.Verify(x => x.Publish("CacheInvalidations", "a-key", false), Times.Once());
pubsub.Verify(x => x.Publish("CacheInvalidations", "a-key", true), Times.Once());
}
[Fact]

Loading…
Cancel
Save