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

            memory.SaveByte(EvmMemory.WordSize / 2, new byte[] { 1 });
            List <string> trace = memory.GetTrace();

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

            memory.SaveByte(ref dest, 1);
            List <string> trace = memory.GetTrace();

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