예제 #1
0
 public void Validate_InvalidBytes_Throws()
 {
     var value = new FidoPublicKey(new byte[65]);
     Assert.Throws<ArgumentException>(() => value.Validate());
 }
예제 #2
0
 public void Validate_Good_NoException()
 {
     var value = new FidoPublicKey(WebSafeBase64Converter.FromBase64String(TestVectors.PublicKeyBase64));
     value.Validate();
 }
예제 #3
0
 public void Validate_BytesEmpty_Throws()
 {
     var value = new FidoPublicKey(new byte[0]);
     Assert.Throws<InvalidOperationException>(() => value.Validate());
 }
        public void Validate_InvalidBytes_Throws()
        {
            var value = new FidoPublicKey(new byte[65]);

            Assert.Throws <ArgumentException>(() => value.Validate());
        }
        public void Validate_BytesEmpty_Throws()
        {
            var value = new FidoPublicKey(new byte[0]);

            Assert.Throws <InvalidOperationException>(() => value.Validate());
        }
        public void Validate_Good_NoException()
        {
            var value = new FidoPublicKey(WebSafeBase64Converter.FromBase64String(TestVectors.PublicKeyBase64));

            value.Validate();
        }