"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const assert = require("assert");
const Graph_1 = require("../../Class/Graph");
const debug_1 = require("../../debug");
const _ids_1 = require("../../system/_ids");
const system_1 = require("../util/system");
const UNIT_ID_EMTPY = 'UNIT_ID_EMTPY';
const UNIT_ID_IDENTITY = 'UNIT_ID_IDENTITY';
const spec = system_1.system.newSpec({});
const composition0 = new Graph_1.Graph(spec, {}, system_1.system);
false && (0, debug_1.watchUnitAndLog)(composition0);
false && (0, debug_1.watchGraphAndLog)(composition0);
composition0.play();
composition0.addUnitSpec(UNIT_ID_EMTPY, {
    unit: { id: _ids_1.ID_EMPTY },
});
composition0.addUnitSpec(UNIT_ID_IDENTITY, {
    unit: { id: _ids_1.ID_IDENTITY },
});
const empty = composition0.refUnit(UNIT_ID_EMTPY);
const identity = composition0.refUnit(UNIT_ID_IDENTITY);
assert.equal(composition0.getUnitCount(), 2);
composition0.moveLinkPinInto(UNIT_ID_EMTPY, UNIT_ID_IDENTITY, 'input', 'a', '0', 'a');
assert.equal(composition0.getUnitCount(), 2);
assert.equal(empty.getInputCount(), 0);
assert.equal(empty.getOutputCount(), 1);
assert(empty.hasOutputNamed('a'));
//# sourceMappingURL=moveLinkPinInto.js.map