public void Validate_InvalidBytes_Throws() { var value = new FidoPublicKey(new byte[65]); Assert.Throws<ArgumentException>(() => value.Validate()); }
public void Validate_Good_NoException() { var value = new FidoPublicKey(WebSafeBase64Converter.FromBase64String(TestVectors.PublicKeyBase64)); value.Validate(); }
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()); }