public void Trace_overwrite()
        {
            IEvmMemory memory = CreateEvmMemory();

            memory.SaveWord(EvmMemory.WordSize, new byte[EvmMemory.WordSize]);
            memory.SaveWord(EvmMemory.WordSize, new byte[EvmMemory.WordSize]);
            List <string> trace = memory.GetTrace();

            Assert.AreEqual(2, trace.Count);
        }
Esempio n. 2
0
        public void Trace_overwrite()
        {
            IEvmMemory memory = CreateEvmMemory();
            UInt256    dest   = EvmPooledMemory.WordSize;

            memory.SaveWord(ref dest, new byte[EvmPooledMemory.WordSize]);
            memory.SaveWord(ref dest, new byte[EvmPooledMemory.WordSize]);
            List <string> trace = memory.GetTrace();

            Assert.AreEqual(2, trace.Count);
        }
Esempio n. 3
0
        public void Trace_one_word()
        {
            IEvmMemory memory = CreateEvmMemory();

            memory.SaveWord(0, new byte[EvmPooledMemory.WordSize]);
            List <string> trace = memory.GetTrace();

            Assert.AreEqual(1, trace.Count);
        }