@@ -10,8 +10,6 @@ import poll from './poll';
1010import { should , expect } from 'chai' ;
1111import { activateCSharpExtension } from './integrationHelpers' ;
1212import testAssetWorkspace from './testAssets/testAssetWorkspace' ;
13- import { dotnetRestore } from '../../src/features/commands' ;
14- import { EventStream } from '../../src/EventStream' ;
1513
1614const chai = require ( 'chai' ) ;
1715chai . use ( require ( 'chai-arrays' ) ) ;
@@ -20,7 +18,7 @@ chai.use(require('chai-fs'));
2018suite ( `Tasks generation: ${ testAssetWorkspace . description } ` , function ( ) {
2119 suiteSetup ( async function ( ) {
2220 should ( ) ;
23- await dotnetRestore ( vscode . workspace . rootPath , new EventStream ( ) ) ;
21+ await testAssetWorkspace . restore ( ) ;
2422 await activateCSharpExtension ( ) ;
2523
2624 await vscode . commands . executeCommand ( "dotnet.generateAssets" ) ;
@@ -33,8 +31,9 @@ suite(`Tasks generation: ${testAssetWorkspace.description}`, function () {
3331 } ) ;
3432
3533 test ( "Starting .NET Core Launch (console) from the workspace root should create an Active Debug Session" , async ( ) => {
36- await vscode . debug . startDebugging ( vscode . workspace . workspaceFolders [ 0 ] , ".NET Core Launch (console)" ) ;
37-
34+ let result = await vscode . debug . startDebugging ( vscode . workspace . workspaceFolders [ 0 ] , ".NET Core Launch (console)" ) ;
35+ expect ( result , "Debugger could not be started." ) ;
36+
3837 let debugSessionTerminated = new Promise ( resolve => {
3938 vscode . debug . onDidTerminateDebugSession ( ( e ) => resolve ( ) ) ;
4039 } ) ;
0 commit comments