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.
}
}