public async void Get_should_return_array_which_was_setted() { var actor = new MemCacheActor(); var buffer = new byte[] {12, 34, 56}; await actor.Set("key", buffer); Assert.Equal(buffer, await actor.Get("key")); Assert.Equal(new[] {"key"}, await actor.GetKeys()); }
public async void Remove_should_remove_value() { var actor = new MemCacheActor(); var buffer = new byte[] { 12, 34, 56 }; await actor.Set("key", buffer); await actor.Remove("key"); Assert.Equal(null, await actor.Get("key")); Assert.Equal(Enumerable.Empty<string>(), await actor.GetKeys()); }