コード例 #1
0
        public void CopyTo()
        {
            IApiKeyService service = GetService();

            string retrieved = service[_appId];

            KeyValuePair <string, string>[] cache = new KeyValuePair <string, string> [1];
            service.CopyTo(cache, 0);
            Assert.NotNull(cache);
            Assert.NotEmpty(cache);
            Assert.Single(cache);
            Assert.Equal(retrieved, cache[0].Value);
            Assert.Equal(_appId, cache[0].Key);
        }