Skip to content

Commit 7c6c64b

Browse files
jeffhandleyCopilot
andauthored
Remove redundant asserts
Co-authored-by: Copilot <[email protected]>
1 parent db515df commit 7c6c64b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/Libraries/Microsoft.Extensions.Caching.Hybrid.Tests/ServiceConstructionTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,12 @@ public void CanCreateKeyedServicesWithKeyedDistributedCaches()
195195
var cacheOneBackend = Assert.IsType<CustomMemoryDistributedCache1>(cacheOne.BackendCache);
196196
Assert.Same(typeof(CustomMemoryDistributedCache1), cacheOneOptions.DistributedCacheServiceKey);
197197
Assert.Same(cacheOneBackend, provider.GetRequiredKeyedService<IDistributedCache>(typeof(CustomMemoryDistributedCache1)));
198-
Assert.IsType<CustomMemoryDistributedCache1>(cacheOne.BackendCache);
199198

200199
var cacheTwo = Assert.IsType<DefaultHybridCache>(provider.GetRequiredKeyedService<HybridCache>("two"));
201200
var cacheTwoOptions = cacheTwo.Options;
202201
var cacheTwoBackend = Assert.IsType<CustomMemoryDistributedCache2>(cacheTwo.BackendCache);
203202
Assert.Same(typeof(CustomMemoryDistributedCache2), cacheTwoOptions.DistributedCacheServiceKey);
204203
Assert.Same(cacheTwoBackend, provider.GetRequiredKeyedService<IDistributedCache>(typeof(CustomMemoryDistributedCache2)));
205-
Assert.IsType<CustomMemoryDistributedCache2>(cacheTwo.BackendCache);
206204
}
207205

208206
[Fact]

0 commit comments

Comments
 (0)