using System.Text; using Qrakhen.Qamp.Core.Execution; namespace Qrakhen.Qamp.Core.Tests; public class CodeTest { private readonly Runner _runner = new(new Options()); private RunnerResult ExecuteCode(string code) { using Stream stream = new MemoryStream(); stream.Write(Encoding.UTF8.GetBytes(code)); return _runner.Run(stream); } [Fact] public void VariableDeclaration_Empty_AllocatesName() { string code = "var name;"; var result = ExecuteCode(code); } }