Ancestry.Daisy.Tests.Daisy.Component.TracingTest.Trace C# (CSharp) Method

Trace() public method

public Trace ( string code ) : TraceNode
code string
return Ancestry.Daisy.Language.AST.Trace.TraceNode
        public TraceNode Trace(string code)
        {
            var statements = new StatementSet().FromAssemblyOf(typeof(UserController));

            var program = DaisyCompiler.Compile<User>(code, statements);
            var result = program.Execute(TestData.Ben);

            Assert.IsNotNull(result.DebugInfo.Trace);
            return result.DebugInfo.Trace;
        }