using System; using System.Collections.Generic; using System.Text; using UnitTestSharp; using DNAModule.Sunweaver.Commands.Abstracts; using DNAModule.Sunweaver.Commands.BinaryLogic; using DNAModule.Sunweaver.DataPrototypes; namespace DNAModule.Sunweaver.UnitTests.Commands.BinaryLogic { public class andTests : TestFixture { BasePair bp = new and(); VirtualMachine VM; public override void TestSetup() { VM = new VirtualMachine(); } public void Correct() { VM.BoolStack.Push(true); VM.BoolStack.Push(false); bp.Implementation(VM); CheckFalse( VM.BoolStack.Pop()); } public void NameTest() { CheckEqual("and", bp.ToString()); } } }