Esempio n. 1
0
        public void TestWireEncodeTransactionOut()
        {
            var actual = NetworkEncoder.EncodeTxOutput(TRANSACTION_OUTPUT_1);

            CollectionAssert.AreEqual(TRANSACTION_OUTPUT_1_BYTES.ToList(), actual.ToList());
        }
Esempio n. 2
0
        public void TestWireDecodeTransactionOut()
        {
            var actual = NetworkEncoder.EncodeTxOutput(NetworkEncoder.DecodeTxOutput(TRANSACTION_OUTPUT_1_BYTES.ToArray().ToMemoryStream()));

            CollectionAssert.AreEqual(TRANSACTION_OUTPUT_1_BYTES.ToList(), actual.ToList());
        }
Esempio n. 3
0
        public void TestWireDecodeTransactionOut()
        {
            var actual = DataEncoder.EncodeTxOutput(DataEncoder.DecodeTxOutput(TRANSACTION_OUTPUT_1_BYTES.ToArray()));

            CollectionAssert.AreEqual(TRANSACTION_OUTPUT_1_BYTES.ToList(), actual.ToList());
        }