public async Task Add_Block_Success() { var transactions = new List <Transaction>(); for (var i = 0; i < 3; i++) { var transaction = _kernelTestHelper.GenerateTransaction(); transactions.Add(transaction); } var block = _kernelTestHelper.GenerateBlock(0, Hash.Empty, transactions); var existBlock = await _fullBlockchainService.GetBlockByHashAsync(block.GetHash()); existBlock.ShouldBeNull(); await _fullBlockchainService.AddBlockAsync(block); existBlock = await _fullBlockchainService.GetBlockByHashAsync(block.GetHash()); existBlock.ShouldBe(block); var blockHeader = await _fullBlockchainService.GetBlockHeaderByHashAsync(block.GetHash()); blockHeader.ShouldBe(block.Header); }