diff options
| author | Rowan Goemans <RB.Goemans@student.han.nl> | 2017-12-29 00:15:59 +0100 |
|---|---|---|
| committer | Christoph Schlosser <christophschlosser@users.noreply.github.com> | 2018-02-20 22:02:22 +0100 |
| commit | b446b9e596fc0487b88597d8e818dae61512f309 (patch) | |
| tree | c7ac9e158964dd88d4cc1839f5ed0da8acce3369 /src/test/tools/MockTextEditorEdit.ts | |
| parent | 5b0912d99732536ae18d3c70730cc6df2ed3af24 (diff) | |
| download | doxdocgen-b446b9e596fc0487b88597d8e818dae61512f309.tar.gz | |
-- Added more unit tests.
-- Added support for alignas.
Diffstat (limited to 'src/test/tools/MockTextEditorEdit.ts')
| -rw-r--r-- | src/test/tools/MockTextEditorEdit.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/tools/MockTextEditorEdit.ts b/src/test/tools/MockTextEditorEdit.ts new file mode 100644 index 0000000..e751182 --- /dev/null +++ b/src/test/tools/MockTextEditorEdit.ts @@ -0,0 +1,18 @@ +import * as vscode from "vscode"; + +export default class MockTextEditorEdit implements vscode.TextEditorEdit { + public text: string; + public replace(location: vscode.Position | vscode.Range | vscode.Selection, value: string): void { + this.text = value; + } + public insert(location: vscode.Position, value: string): void { + throw new Error("Method not implemented."); + } + public delete(location: vscode.Range | vscode.Selection): void { + throw new Error("Method not implemented."); + } + public setEndOfLine(endOfLine: vscode.EndOfLine): void { + throw new Error("Method not implemented."); + } + +} |