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/MockSelection.ts | |
| parent | 5b0912d99732536ae18d3c70730cc6df2ed3af24 (diff) | |
| download | doxdocgen-b446b9e596fc0487b88597d8e818dae61512f309.tar.gz | |
-- Added more unit tests.
-- Added support for alignas.
Diffstat (limited to 'src/test/tools/MockSelection.ts')
| -rw-r--r-- | src/test/tools/MockSelection.ts | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/test/tools/MockSelection.ts b/src/test/tools/MockSelection.ts new file mode 100644 index 0000000..e72ff8b --- /dev/null +++ b/src/test/tools/MockSelection.ts @@ -0,0 +1,35 @@ +import * as vscode from "vscode"; +import MockPosition from "./MockPosition"; + +export default class MockSelection implements vscode.Selection { + public anchor: vscode.Position; + public active: vscode.Position; + public isReversed: boolean; + public start: vscode.Position; + public end: vscode.Position; + public isEmpty: boolean; + public isSingleLine: boolean; + + public constructor(a: MockPosition) { + this.active = a; + this.start = a; + } + + public contains(positionOrRange: vscode.Range | vscode.Position): boolean { + throw new Error("Method not implemented."); + } + public isEqual(other: vscode.Range): boolean { + throw new Error("Method not implemented."); + } + public intersection(range: vscode.Range): vscode.Range { + throw new Error("Method not implemented."); + } + public union(other: vscode.Range): vscode.Range { + throw new Error("Method not implemented."); + } + public with(start?: vscode.Position, end?: vscode.Position): vscode.Range; + public with(change: { start?: vscode.Position; end?: vscode.Position; }): vscode.Range; + public with(start?: any, end?: any): any { + throw new Error("Method not implemented."); + } +} |