Exemplo n.º 1
0
		public void FromByteStackToDataStack() {
			Stack stack = new Stack();
			stack.Push(new SignedInt(600).ToByteArray()); // TODO: Will `SignedInt`s be delivered this way from scripts?

			DataStack data = new DataStack();
			data.Push(stack.Pop(2));

			Assert.AreEqual(600, data.PopInt());
		}
Exemplo n.º 2
0
        public void FromByteStackToDataStack()
        {
            Stack stack = new Stack();

            stack.Push(new SignedInt(600).ToByteArray());             // TODO: Will `SignedInt`s be delivered this way from scripts?

            DataStack data = new DataStack();

            data.Push(stack.Pop(2));

            Assert.AreEqual(600, data.PopInt());
        }