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 sgnTests : TestFixture { BasePair bp = new sgn(); VirtualMachine VM; public override void TestSetup() { VM = new VirtualMachine(); } public void Correct() { VM.Stack.Push(-25); bp.Implementation(VM); CheckEqual(-1, VM.Stack.Pop()); } public void NameTest() { CheckEqual("sgn", bp.ToString()); } } }