using System; using System.Collections.Generic; using System.Text; using UnitTestSharp; using DNAModule.Sunweaver.Commands.Abstracts; using DNAModule.Sunweaver.Commands; using DNAModule.Sunweaver.DataPrototypes; using DNAModule.Sunweaver.Commands.Comparisons; namespace DNAModule.Sunweaver.UnitTests.Commands { public class EqualTest : TestFixture { BasePair bp = new Equal(); VirtualMachine VM; public override void TestSetup() { VM = new VirtualMachine(); } public void Correct() { VM.Stack.Push(10); VM.Stack.Push(10); bp.Implementation(VM); CheckTrue( VM.BoolStack.Pop()); } public void Name() { CheckEqual("=", bp.ToString()); } } }