BitSharper.Test.BlockChainTest.ReceiveCoins C# (CSharp) Method

ReceiveCoins() private method

private ReceiveCoins ( ) : void
return void
        public void ReceiveCoins()
        {
            // Quick check that we can actually receive coins.
            var tx1 = TestUtils.CreateFakeTx(_unitTestParams,
                                             Utils.ToNanoCoins(1, 0),
                                             _wallet.Keychain[0].ToAddress(_unitTestParams));
            var b1 = TestUtils.CreateFakeBlock(_unitTestParams, _blockStore, tx1).Block;
            _chain.Add(b1);
            Assert.IsTrue(_wallet.GetBalance().CompareTo(0UL) > 0);
        }