using System; using System.Collections.Generic; using System.Text; using UnitTestSharp; using DNAModule.Sunweaver.Commands.Abstracts; using DNAModule.Sunweaver.Commands; using DNAModule.Sunweaver.DataPrototypes; namespace DNAModule.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()); } } }