示例#1
0
        public void SetToP2PKTest(PublicKey pub, bool comp, byte[] expected)
        {
            PubkeyScript scr = new PubkeyScript();

            scr.SetToP2PK(pub, comp);
            Assert.Equal(expected, scr.Data);
        }
示例#2
0
        public void SetToP2PK_ExceptionTest()
        {
            PubkeyScript scr = new PubkeyScript();

            Assert.Throws <ArgumentNullException>(() => scr.SetToP2PK(null, true));
        }