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