assert.ok(fs.existsSync(untitledOne.configPath.fsPath),`Unexpected missing untitled workspace: ${untitledOne.configPath.fsPath} does not exist anymore?`);
assert.ok(fs.existsSync(untitledOne.configPath.fsPath),`Unexpected workspaces count of 1 (expected 2): ${untitledOne.configPath.fsPath} does not exist anymore?`);
assert.ok(fs.existsSync(untitledOne.configPath.fsPath),`Unexpected workspaces count of 1 (expected 2): ${untitledOne.configPath.fsPath} does not exist anymore?`);
if(untitled.length===1){
assert.fail(`Unexpected workspaces count of 1 (expected 2), all workspaces:\n ${fs.readdirSync(untitledHome.fsPath).map(name=>fs.readFileSync(joinPath(untitledHome,name,'workspace.json').fsPath,'utf8'))}, before getUntitledWorkspacesSync: ${beforeGettingUntitledWorkspaces}`);
assert.strictEqual(untitledHome.fsPath,dirname(dirname(untitledOne.configPath)).fsPath,`Unexpected different untitled workspace homes: ${untitledHome} vs ${dirname(dirname(untitledTwo.configPath))}`);
assert.notStrictEqual(resolvedWorkspace,null,`Untitled workspace unexpectedly did not resolve: ${untitledPath.fsPath}`);
}
assert.strictEqual(2,untitled.length);
untitled=service.getUntitledWorkspacesSync();
assert.ok(fs.existsSync(untitledOne.configPath.fsPath),`Unexpected missing untitled workspace: ${untitledOne.configPath.fsPath} does not exist anymore?`);
assert.ok(fs.existsSync(untitledTwo.configPath.fsPath),`Unexpected missing untitled workspace: ${untitledTwo.configPath.fsPath} does not exist anymore?`);
assert.strictEqual(2,untitled.length,`Unexpected workspaces count (expected 2), all workspaces:\n ${fs.readdirSync(untitledHome.fsPath).map(folder=>fs.readFileSync(joinPath(untitledHome,folder,UNTITLED_WORKSPACE_NAME).fsPath,'utf8'))}, before getUntitledWorkspacesSync: ${beforeGettingUntitledWorkspaces}`);