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 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()); } } }