import * as assert from 'assert' ; import * as vscode from 'vscode' ; import { convertDataToDebuggerMessage } from '../src/debugAdapter/messages' ; suite ( 'OpenEdge ABL Extension Tests' , ( ) => { test ( 'Test MSG_CLASSINFO Processing' , ( done ) => { const msgRaw = `MSG_CLASSINFO;1;ablRunner;Progress.Lang.Object;N;NULL;P;Next-Sibling;Progress.Lang.Object;1;R;1008  (Class OpenEdge.ABLUnit.Model.TestRootModel);P;Prev-Sibling;Progress.Lang.Object;1;R;1006  (Class OpenEdge.ABLUnit.Runner.TestConfig);` ; const msg = convertDataToDebuggerMessage ( msgRaw ) ; assert . deepEqual ( msg , [ { args : [ ] , baseClass : null , code : 'MSG_CLASSINFO' , properties : [ { children : [ ] , kind : 7 , name : 'Next-Sibling' , type : 'Progress.Lang.Object' , value : '1008  (Class OpenEdge.ABLUnit.Model.TestRootModel)' , } , { children : [ ] , kind : 7 , name : 'Prev-Sibling' , type : 'Progress.Lang.Object' , value : '1006  (Class OpenEdge.ABLUnit.Runner.TestConfig)' , } ] , } ] ) ; done ( ) ; } ) ; test ( 'Test MSG_ARRAY Processing' , ( done ) => { const msgRaw = `MSG_ARRAY;ext2;1;W;2"";2;W;2"";` ; const msg = convertDataToDebuggerMessage ( msgRaw ) ; assert . deepEqual ( msg , [ { args : [ ] , code : 'MSG_ARRAY' , values : [ '2""' , '2""' , ] , } ] ) ; done ( ) ; } ) ; } ) ;