예제 #1
0
        public async Task CacheKeysAsync_should_not_store_empty_keys()
        {
            {
                await _subject.CacheKeysAsync(null);

                _mockKeyStoreCache.StoreKeysAsyncWasCalled.Should().BeFalse();
            }

            {
                await _subject.CacheKeysAsync(new RsaKeyContainer[0]);

                _mockKeyStoreCache.StoreKeysAsyncWasCalled.Should().BeFalse();
            }
        }