Esempio n. 1
0
        public void _When_finding_hash_it_does_not_load_headers()
        {
            _blockTree.FindHash(123).Returns(TestItem.KeccakA);
            Keccak result = _syncServer.FindHash(123);

            _blockTree.DidNotReceive().FindHeader(Arg.Any <long>(), Arg.Any <BlockTreeLookupOptions>());
            _blockTree.DidNotReceive().FindHeader(Arg.Any <Keccak>(), Arg.Any <BlockTreeLookupOptions>());
            _blockTree.DidNotReceive().FindBlock(Arg.Any <Keccak>(), Arg.Any <BlockTreeLookupOptions>());
            Assert.AreEqual(TestItem.KeccakA, result);
        }