Example #1
0
            public void GivenUnsupportedAlgorithmType_ThrowsNotSupportedException()
            {
                var    unsupported = new CustomSignatureAlgorithm("CUSTOM");
                Action act         = () => _sut.FromSignatureAlgorithm(unsupported, _encryptionKey);

                act.Should().Throw <NotSupportedException>();
            }
Example #2
0
            public void GivenUnsupportedAlgorithmType_ThrowsNotSupportedException()
            {
                var    unsupported = new CustomSignatureAlgorithm("CUSTOM");
                Action act         = () => SignatureAlgorithmDataRecord.FromSignatureAlgorithm(unsupported);

                act.Should().Throw <NotSupportedException>();
            }