Esempio n. 1
0
        /// <summary>
        /// Basic branch flow, reused to check true and false flows
        /// </summary>
        /// <returns>
        /// The <see cref="Trunk"/>.
        /// </returns>
        private static Trunk GetBranchTest()
        {
            var root = new Trunk(CreateScript("Z = X + Y"));

            root.AddBranch(CreateBranchScript("return X > Y;"), new Trunk(CreateScript("Y = 150")), new Trunk(CreateScript("Z = 99")));
            return(root);
        }