Sha256: b03adc7570c5073811681502e5430b9f196c96fc7795b0152dba6e62641762ba

Contents?: true

Size: 985 Bytes

Versions: 3

Compression:

Stored size: 985 Bytes

Contents

package asunit.framework {
	import flash.utils.getQualifiedClassName;

    /**
     * @see Result
     */
    public class TestSuccess implements ITestSuccess {
        protected var _test:Object;
        protected var _method:String;

        /**
         * Constructs a TestFailure with the given test and exception.
         */
        public function TestSuccess(test:Object, method:String) {
            _test = test;
            _method = method;
        }

        public function get feature():String {
            return getQualifiedClassName(_test) + '.' + _method;
        }

        public function get test():Object {
            return _test;
        }
		
        public function get method():String {
            return _method;
        }

        /**
         * Returns a short description of the success.
         */
        public function toString():String {
            return "[TestSuccess " + method + "]";
        }
    }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
asunit4-4.2.3.pre src/asunit/framework/TestSuccess.as
asunit4-4.2.2.pre src/asunit/framework/TestSuccess.as
asunit4-4.2.1.pre src/asunit/framework/TestSuccess.as