Пример #1
0
        public void WriteToStreamForSigningSegWit_ExecutedTest()
        {
            CodeSeparatorOp op = new CodeSeparatorOp()
            {
                IsExecuted = true
            };
            FastStream stream = new FastStream(5);

            op.WriteToStreamForSigningSegWit(stream);

            Assert.Equal(new byte[0], stream.ToByteArray());
        }
Пример #2
0
        public void WriteToStreamForSigningSegWit_NotExecutedTest()
        {
            CodeSeparatorOp op = new CodeSeparatorOp()
            {
                IsExecuted = false
            };
            FastStream stream = new FastStream(5);

            op.WriteToStreamForSigningSegWit(stream);

            Assert.Equal(new byte[1] {
                (byte)OP.CodeSeparator
            }, stream.ToByteArray());
        }