using System; using System.Collections.Generic; using System.Text; using UnitTestSharp; using DNAModule.Sunweaver.Commands.Abstracts; using DNAModule.Sunweaver.Commands.BinaryMath; using DNAModule.Sunweaver.DataPrototypes; using DNAModule.Sunweaver.Commands.UnaryMath; namespace DNAModule.Sunweaver.UnitTests.Commands.UnaryMath { public class absTests : TestFixture { BasePair bp = new abs(); VirtualMachine VM; public override void TestSetup() { VM = new VirtualMachine(); } public void Correct() { VM.Stack.Push(-25); bp.Implementation(VM); CheckEqual(25, VM.Stack.Pop()); } public void NameTest() { CheckEqual("abs", bp.ToString()); } } }