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 TrueTest : TestFixture { BasePair bp = new True(); VirtualMachine VM = new VirtualMachine(); public void PushesCorrectValueOntoStack() { bp.Implementation(VM); CheckEqual((long)1, VM.BoolStack.Count()); CheckTrue( VM.BoolStack.Pop()); } public void Name() { CheckEqual("true", bp.ToString()); } } }