Class NoCacheServiceTest
[TestFixture]
public class NoCacheServiceTest
- Inheritance
-
NoCacheServiceTest
- Inherited Members
- Extension Methods
Methods
CleanCache_IsNoOp_DoesNotThrow()
Verifies that calling CleanCache on the no-cache service is a safe no-op that does not throw,
and that subsequent calls to GetValue consistently return null for any key.
[Test]
public void CleanCache_IsNoOp_DoesNotThrow()
DeleteByPatternAsync_ReturnsZero_DoesNotThrow()
Verifies that the no-cache service's DeleteByPatternAsync returns 0 and does not throw when invoked with arbitrary patterns, confirming the no-op delete behavior for any key pattern.
[Test]
public Task DeleteByPatternAsync_ReturnsZero_DoesNotThrow()
Returns
GetOrSetObjectAsync_AlwaysCallsFactory_NeverUsesCache()
[Test]
public Task GetOrSetObjectAsync_AlwaysCallsFactory_NeverUsesCache()
Returns
GetOrSetObjectAsync_CallsFactory_ForEachUniqueKey()
[Test]
public Task GetOrSetObjectAsync_CallsFactory_ForEachUniqueKey()
Returns
GetOrSetObjectAsync_DoesNotStoreData_InAnyBackend()
Verifies that the no-cache service implementation never persists data to any backend when GetOrSetObjectAsync is invoked, and confirms that a subsequent DeleteObjectAsync on the same key does not throw.
[Test]
public Task GetOrSetObjectAsync_DoesNotStoreData_InAnyBackend()
Returns
GetValue_IsNoOp_ReturnsNull()
Verifies that the no-cache service's GetValue method returns null for any key, confirming that the no-op implementation does not return or simulate cached values.
[Test]
public void GetValue_IsNoOp_ReturnsNull()
SetUp()
Initializes a fresh NoCacheService instance and assigns it to _noCacheService
to provide a clean, dependency-free test fixture prior to executing each test.
[SetUp]
public void SetUp()
SetValue_IsNoOp_DoesNotThrow()
Verifies that calling SetValue on the no-cache service is a no-op and does not throw any exception.
[Test]
public void SetValue_IsNoOp_DoesNotThrow()