AjTalk.Language.BlockBehavior.AssertMethod C# (CSharp) 메소드

AssertMethod() 개인적인 메소드

private AssertMethod ( System.Machine machine, object obj, object arguments ) : object
machine System.Machine
obj object
arguments object
리턴 object
        private object AssertMethod(Machine machine, object obj, object[] arguments)
        {
            Block block = (Block)obj;
            var result = block.Execute(machine, arguments);

            // TODO review what is true
            if (result is bool && (bool)result == true)
                return true;

            throw new AssertError();
        }