public void SetToP2PKTest(PublicKey pub, bool comp, byte[] expected) { PubkeyScript scr = new PubkeyScript(); scr.SetToP2PK(pub, comp); Assert.Equal(expected, scr.Data); }
public void SetToP2PK_ExceptionTest() { PubkeyScript scr = new PubkeyScript(); Assert.Throws <ArgumentNullException>(() => scr.SetToP2PK(null, true)); }