using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Collections.Generic; namespace YesNt.Interpreter.Tests; [TestClass] public class CodeFlowTests { [TestMethod] public void FunctionTest() { List lines = new List() { "cal yes", "fnc yes", "!result" }; YesNtAssert.IsLastLineEqual(lines, "1"); } [TestMethod] public void LabelsTest() { List lines = new List() { "result" }; YesNtAssert.IsLastLineEqual(lines, "1"); } [TestMethod] public void CalculationsTest() { Assert.Inconclusive(); YesNtAssert.IsLineEqual("10 * 10 !calc", (20).ToString()); } }