Example #1
0
        public async Task GetSigningCredentialsAsync_should_verify_encryptor_type()
        {
            var sut = new KeyRing(new Mock <IKey>().Object, new[] { new Mock <IKey>().Object }, new RsaEncryptorConfiguration());

            await Assert.ThrowsAsync <InvalidOperationException>(() => sut.GetSigningCredentialsAsync());
        }