public void PostInformationAndGetInformationWithDifferentKeys() { var cache = new CachedStorage(); cache.SetValueById("1", null); object result; cache.TryGetValueById("2", out result); result.Should().BeNull(); }
public void PostNullIfnformationToCacheStorage() { var cache = new CachedStorage(); cache.SetValueById("1", null); object result; cache.TryGetValueById("1", out result); result.Should().BeNull(); }
public void PostInformationWithNullKeyToCacheStorage() { var cache = new CachedStorage(); cache.SetValueById(null, null); object result; cache.TryGetValueById(null, out result); result.Should().BeNull(); }
public void PostIfnformationToCacheStorage() { var cache = new CachedStorage(); object inf = new Byte[1, 3, 4, 5, 6]; cache.SetValueById("1", inf); object result; cache.TryGetValueById("1", out result); result.Should().Be(inf); }