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();
        }