public void splicing_an_unnested_sub_tree_throws_exception() { Init(); var invokeCount = 0; var spliced = testObject .Sequence("spliced") .Do("test", t => { ++invokeCount; return(BehaviourTreeStatus.Success); }) .End() .Build(); Assert.Throws <ApplicationException>(() => { testObject .Splice(spliced); }); }