"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Test_1 = require("../Test");
const Types_1 = require("../../../Types");
const TypeNameHelpers_1 = require("./TypeNameHelpers");
describe('generateTypeReference', () => {
    it('basic', () => {
        expect(Test_1.printTsNode(TypeNameHelpers_1.generateTypeReference(Types_1.mockIl2CppTypeInfo({ TypeName: 'Class1', Namespace: 'Test.NS' }), Test_1.fakeContext, undefined))).toEqual('Test.NS.Class1');
    });
});
describe('getTypeName', () => {
    it('one{type}', () => {
        expect(Test_1.fakeContext.types.getTypeName(Types_1.mockIl2CppTypeInfo({ TypeName: 'type', Namespace: 'one' }), Test_1.fakeContext)).toEqual('one.type');
    });
    it('two.parts{type}', () => {
        expect(Test_1.fakeContext.types.getTypeName(Types_1.mockIl2CppTypeInfo({ TypeName: 'type', Namespace: 'two.parts' }), Test_1.fakeContext)).toEqual('two.parts.type');
    });
    it('""{type}', () => {
        expect(Test_1.fakeContext.types.getTypeName(Types_1.mockIl2CppTypeInfo({ TypeName: 'type', Namespace: '' }), Test_1.fakeContext)).toEqual('type');
    });
    it('undefined{type}', () => {
        expect(Test_1.fakeContext.types.getTypeName(Types_1.mockIl2CppTypeInfo({ TypeName: 'type', Namespace: undefined }), Test_1.fakeContext)).toEqual('type');
    });
});
//# sourceMappingURL=TypeNameHelpers.test.js.map