using System; using System.Collections.Generic; using System.Text; using UnitTestSharp; using Sunweaver.Commands.Abstracts; using Sunweaver.Commands; using Sunweaver.DataPrototypes; namespace Sunweaver.UnitTests.Commands { public class ConstantTest : TestFixture { Constant bp = new Constant(0); VirtualMachine VM = new VirtualMachine(); public void PushesCorrectValueOntoStack() { bp.number = 987; bp.Implementation(VM); CheckEqual(1, VM.Stack.Count()); CheckEqual(987, VM.Stack.Pop()); } } }