Пример #1
0
        public void ParseSignature_returns_parts()
        {
            var(tx, app) = Duo.ParseSignature("tx:app");

            Assert.Equal("tx", tx);
            Assert.Equal("app", app);
        }
Пример #2
0
 public void ParseSignature_throws_on_invalid_signature(string invalid)
 {
     Exceptions.AssertThrowsInternalError(() => Duo.ParseSignature(invalid), "signature is invalid");
 }