GetEmitOutput function and testfiles

```TypeScript
emitResults.outputFile.push({
    name: fileName,
    writeByteOrderMark: writeByteOrderMark,
    text: data
});
```