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 LabelTest : TestFixture { Label bp = new Label("test", 36); VirtualMachine VM = new VirtualMachine(); public void PushesCorrectValueOntoStack() { bp.Implementation(VM); CheckEqual(1, VM.Stack.Count()); CheckEqual(36, VM.Stack.Pop()); } public void Name() { CheckEqual("test", bp.ToString()); } public void NameWhenBlank() { bp = new Label("", 36); CheckEqual("36", bp.ToString()); } } }