(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "./TestMethod", "./TestRunner"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    const TestMethod_1 = require("./TestMethod");
    const TestRunner_1 = require("./TestRunner");
    function Test(name, propertyKey, descriptor) {
        if (typeof name === "string") {
            return (t, p, d) => {
                // console.log(`Test called for ${target.constructor.name} in ${propertyKey}`)
                TestRunner_1.default.instance.tests.push(new TestMethod_1.default(name || p, p, t.constructor.name, t.constructor));
            };
        }
        TestRunner_1.default.instance.tests.push(new TestMethod_1.default(propertyKey, propertyKey, name.constructor.name, name.constructor));
    }
    exports.default = Test;
});
//# sourceMappingURL=Test.js.map