19
19
using Xunit ;
20
20
namespace Microsoft . PowerShell . EditorServices . Test . Debugging
21
21
{
22
+ [ Trait ( "Category" , "DebugService" ) ]
22
23
public class DebugServiceTests : IDisposable
23
24
{
24
25
private readonly PsesInternalHost psesHost ;
@@ -133,7 +134,6 @@ private Task<IReadOnlyList<LineBreakpoint>> GetConfirmedBreakpoints(ScriptFile s
133
134
CancellationToken . None ) ;
134
135
}
135
136
136
- [ Trait ( "Category" , "DebugService" ) ]
137
137
[ Fact ]
138
138
// This regression test asserts that `ExecuteScriptWithArgsAsync` works for both script
139
139
// files and, in this case, in-line scripts (commands). The bug was that the cwd was
@@ -162,7 +162,6 @@ await debugService.SetCommandBreakpointsAsync(
162
162
Assert . Equal ( "[ArrayList: 0]" , var . ValueString ) ;
163
163
}
164
164
165
- [ Trait ( "Category" , "DebugService" ) ]
166
165
[ Fact ]
167
166
public async Task DebuggerAcceptsScriptArgs ( )
168
167
{
@@ -224,7 +223,6 @@ public async Task DebuggerAcceptsScriptArgs()
224
223
Assert . Equal ( "\" Extra1\" " , childVars [ 0 ] . ValueString ) ;
225
224
}
226
225
227
- [ Trait ( "Category" , "DebugService" ) ]
228
226
[ Fact ]
229
227
public async Task DebuggerSetsAndClearsFunctionBreakpoints ( )
230
228
{
@@ -250,7 +248,6 @@ public async Task DebuggerSetsAndClearsFunctionBreakpoints()
250
248
Assert . Empty ( breakpoints ) ;
251
249
}
252
250
253
- [ Trait ( "Category" , "DebugService" ) ]
254
251
[ Fact ]
255
252
public async Task DebuggerStopsOnFunctionBreakpoints ( )
256
253
{
@@ -283,7 +280,6 @@ public async Task DebuggerStopsOnFunctionBreakpoints()
283
280
Assert . Equal ( "2" , i . ValueString ) ;
284
281
}
285
282
286
- [ Trait ( "Category" , "DebugService" ) ]
287
283
[ Fact ]
288
284
public async Task DebuggerSetsAndClearsLineBreakpoints ( )
289
285
{
@@ -317,7 +313,6 @@ await debugService.SetLineBreakpointsAsync(
317
313
Assert . Empty ( remainingBreakpoints ) ;
318
314
}
319
315
320
- [ Trait ( "Category" , "DebugService" ) ]
321
316
[ Fact ]
322
317
public async Task DebuggerStopsOnLineBreakpoints ( )
323
318
{
@@ -334,7 +329,6 @@ await debugService.SetLineBreakpointsAsync(
334
329
AssertDebuggerStopped ( debugScriptFile . FilePath , 7 ) ;
335
330
}
336
331
337
- [ Trait ( "Category" , "DebugService" ) ]
338
332
[ Fact ]
339
333
public async Task DebuggerStopsOnConditionalBreakpoints ( )
340
334
{
@@ -374,7 +368,6 @@ await debugService.SetLineBreakpointsAsync(
374
368
Assert . Equal ( $ "{ breakpointValue2 } ", i . ValueString ) ;
375
369
}
376
370
377
- [ Trait ( "Category" , "DebugService" ) ]
378
371
[ Fact ]
379
372
public async Task DebuggerStopsOnHitConditionBreakpoint ( )
380
373
{
@@ -399,7 +392,6 @@ await debugService.SetLineBreakpointsAsync(
399
392
Assert . Equal ( $ "{ hitCount } ", i . ValueString ) ;
400
393
}
401
394
402
- [ Trait ( "Category" , "DebugService" ) ]
403
395
[ Fact ]
404
396
public async Task DebuggerStopsOnConditionalAndHitConditionBreakpoint ( )
405
397
{
@@ -423,7 +415,6 @@ await debugService.SetLineBreakpointsAsync(
423
415
Assert . Equal ( "10" , i . ValueString ) ;
424
416
}
425
417
426
- [ Trait ( "Category" , "DebugService" ) ]
427
418
[ Fact ]
428
419
public async Task DebuggerProvidesMessageForInvalidConditionalBreakpoint ( )
429
420
{
@@ -452,7 +443,6 @@ await debugService.SetLineBreakpointsAsync(
452
443
Assert . Contains ( "Unexpected token '-ez'" , breakpoints [ 0 ] . Message ) ;
453
444
}
454
445
455
- [ Trait ( "Category" , "DebugService" ) ]
456
446
[ Fact ]
457
447
public async Task DebuggerFindsParseableButInvalidSimpleBreakpointConditions ( )
458
448
{
@@ -475,7 +465,6 @@ await debugService.SetLineBreakpointsAsync(
475
465
Assert . Contains ( "Use '-gt' instead of '>'" , breakpoints [ 1 ] . Message ) ;
476
466
}
477
467
478
- [ Trait ( "Category" , "DebugService" ) ]
479
468
[ Fact ]
480
469
public async Task DebuggerBreaksWhenRequested ( )
481
470
{
@@ -487,7 +476,6 @@ public async Task DebuggerBreaksWhenRequested()
487
476
AssertDebuggerPaused ( ) ;
488
477
}
489
478
490
- [ Trait ( "Category" , "DebugService" ) ]
491
479
[ Fact ]
492
480
public async Task DebuggerRunsCommandsWhileStopped ( )
493
481
{
@@ -502,7 +490,6 @@ public async Task DebuggerRunsCommandsWhileStopped()
502
490
Assert . Equal ( 17 , ( await executeTask . ConfigureAwait ( true ) ) [ 0 ] ) ;
503
491
}
504
492
505
- [ Trait ( "Category" , "DebugService" ) ]
506
493
[ Fact ]
507
494
public async Task DebuggerVariableStringDisplaysCorrectly ( )
508
495
{
@@ -522,7 +509,6 @@ await debugService.SetLineBreakpointsAsync(
522
509
Assert . False ( var . IsExpandable ) ;
523
510
}
524
511
525
- [ Trait ( "Category" , "DebugService" ) ]
526
512
[ Fact ]
527
513
public async Task DebuggerGetsVariables ( )
528
514
{
@@ -573,7 +559,6 @@ await debugService.SetLineBreakpointsAsync(
573
559
Assert . Equal ( "$false" , falseVar . ValueString ) ;
574
560
}
575
561
576
- [ Trait ( "Category" , "DebugService" ) ]
577
562
[ Fact ( Skip = "Variable setting is broken" ) ]
578
563
public async Task DebuggerSetsVariablesNoConversion ( )
579
564
{
@@ -634,7 +619,6 @@ await debugService.SetLineBreakpointsAsync(
634
619
Assert . Equal ( newGlobalIntValue , intGlobalVar . ValueString ) ;
635
620
}
636
621
637
- [ Trait ( "Category" , "DebugService" ) ]
638
622
[ Fact ( Skip = "Variable setting is broken" ) ]
639
623
public async Task DebuggerSetsVariablesWithConversion ( )
640
624
{
@@ -698,7 +682,6 @@ await debugService.SetLineBreakpointsAsync(
698
682
Assert . Equal ( newGlobalValue , globalVar . ValueString ) ;
699
683
}
700
684
701
- [ Trait ( "Category" , "DebugService" ) ]
702
685
[ Fact ]
703
686
public async Task DebuggerVariableEnumDisplaysCorrectly ( )
704
687
{
@@ -719,7 +702,6 @@ await debugService.SetLineBreakpointsAsync(
719
702
Assert . False ( var . IsExpandable ) ;
720
703
}
721
704
722
- [ Trait ( "Category" , "DebugService" ) ]
723
705
[ Fact ]
724
706
public async Task DebuggerVariableHashtableDisplaysCorrectly ( )
725
707
{
@@ -756,7 +738,6 @@ await debugService.SetLineBreakpointsAsync(
756
738
}
757
739
}
758
740
759
- [ Trait ( "Category" , "DebugService" ) ]
760
741
[ Fact ]
761
742
public async Task DebuggerVariableNullStringDisplaysCorrectly ( )
762
743
{
@@ -777,7 +758,6 @@ await debugService.SetLineBreakpointsAsync(
777
758
Assert . True ( nullStringVar . IsExpandable ) ;
778
759
}
779
760
780
- [ Trait ( "Category" , "DebugService" ) ]
781
761
[ Fact ]
782
762
public async Task DebuggerVariablePSObjectDisplaysCorrectly ( )
783
763
{
@@ -805,7 +785,6 @@ await debugService.SetLineBreakpointsAsync(
805
785
Assert . Equal ( "\" John\" " , childVars [ "Name" ] ) ;
806
786
}
807
787
808
- [ Trait ( "Category" , "DebugService" ) ]
809
788
[ Fact ]
810
789
public async Task DebuggerVariablePSCustomObjectDisplaysCorrectly ( )
811
790
{
@@ -835,7 +814,6 @@ await debugService.SetLineBreakpointsAsync(
835
814
836
815
// Verifies fix for issue #86, $proc = Get-Process foo displays just the ETS property set
837
816
// and not all process properties.
838
- [ Trait ( "Category" , "DebugService" ) ]
839
817
[ Fact ( Skip = "Length of child vars is wrong now" ) ]
840
818
public async Task DebuggerVariableProcessObjDisplaysCorrectly ( )
841
819
{
0 commit comments