using System; using System.Collections.Generic; using System.Text; using UnitTestSharp; using Sunweaver.Commands.Abstracts; using Sunweaver.Commands; using Sunweaver.DataPrototypes; namespace Sunweaver.UnitTests.Commands { // public class StartTest : TestFixture { BasePair bp = new start(); VirtualMachine VM = new VirtualMachine(); public void ClearsStack() { VM.Stack.Push(1); VM.Stack.Push(2); VM.Stack.Push(3); VM.Stack.Push(4); VM.Stack.Push(5); bp.Implementation(VM); CheckEqual(0, VM.Stack.Count()); } public void ClearsBoolStack() { VM.BoolStack.Push(true); VM.BoolStack.Push(true); VM.BoolStack.Push(true); VM.BoolStack.Push(true); bp.Implementation(VM); CheckEqual((long)0, VM.BoolStack.Count()); } } }