Ejemplo n.º 1
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked {
                switch (hash)
                {
                case 1092664259:
                {
                    this.cases = ((global::List <object>)(global::List <object> .__hx_cast <object>(((global::List)(@value)))));
                    return(@value);
                }


                case 142895325:
                {
                    this.result = ((global::haxe.unit.TestResult)(@value));
                    return(@value);
                }


                default:
                {
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
        }
Ejemplo n.º 2
0
        public virtual bool run()
        {
            this.result = new global::haxe.unit.TestResult();
            {
                global::_List.ListNode <object> _g_head = this.cases.h;
                while ((_g_head != null))
                {
                    global::haxe.unit.TestCase val = ((global::haxe.unit.TestCase)(_g_head.item));
                    _g_head = _g_head.next;
                    global::haxe.unit.TestCase c = ((global::haxe.unit.TestCase)(val));
                    this.runCase(c);
                }
            }

            global::haxe.unit.TestRunner.print.__hx_invoke1_o(default(double), this.result.toString());
            return(this.result.success);
        }
Ejemplo n.º 3
0
 public static void __hx_ctor_haxe_unit_TestResult(global::haxe.unit.TestResult __hx_this)
 {
     __hx_this.m_tests = new global::List <object>();
     __hx_this.success = true;
 }