BitSharper.Test.BlockTest.TestBadTransactions C# (CSharp) Method

TestBadTransactions() private method

private TestBadTransactions ( ) : void
return void
        public void TestBadTransactions()
        {
            var block = new Block(_params, _blockBytes);
            // Re-arrange so the coinbase transaction is not first.
            var tx1 = block.Transactions[0];
            var tx2 = block.Transactions[1];
            block.Transactions[0] = tx2;
            block.Transactions[1] = tx1;
            try
            {
                block.Verify();
                Assert.Fail();
            }
            catch (VerificationException)
            {
                // We should get here.
            }
        }