11using System ;
2+ using System . Diagnostics ;
23using System . Reactive . Linq ;
34using System . Text ;
45using System . Threading ;
56using System . Threading . Tasks ;
67using CliWrap . Buffered ;
78using CliWrap . EventStream ;
8- using CliWrap . Tests . Utils ;
9+ using CliWrap . Tests . Utils . Extensions ;
910using FluentAssertions ;
1011using Xunit ;
1112
@@ -32,7 +33,7 @@ public async Task I_can_execute_a_command_and_cancel_it_immediately()
3233 var ex = await Assert . ThrowsAnyAsync < OperationCanceledException > ( ( ) => task ) ;
3334 ex . CancellationToken . Should ( ) . Be ( cts . Token ) ;
3435
35- ProcessEx . IsRunning ( task . ProcessId ) . Should ( ) . BeFalse ( ) ;
36+ Process . IsRunning ( task . ProcessId ) . Should ( ) . BeFalse ( ) ;
3637 stdOutBuffer . ToString ( ) . Should ( ) . NotContain ( "Done." ) ;
3738 }
3839
@@ -55,7 +56,7 @@ public async Task I_can_execute_a_command_and_cancel_it_after_a_delay()
5556 var ex = await Assert . ThrowsAnyAsync < OperationCanceledException > ( ( ) => task ) ;
5657 ex . CancellationToken . Should ( ) . Be ( cts . Token ) ;
5758
58- ProcessEx . IsRunning ( task . ProcessId ) . Should ( ) . BeFalse ( ) ;
59+ Process . IsRunning ( task . ProcessId ) . Should ( ) . BeFalse ( ) ;
5960 stdOutBuffer . ToString ( ) . Should ( ) . NotContain ( "Done." ) ;
6061 }
6162
@@ -87,7 +88,7 @@ public async Task I_can_execute_a_command_and_cancel_it_gracefully_after_a_delay
8788 var ex = await Assert . ThrowsAnyAsync < OperationCanceledException > ( ( ) => task ) ;
8889 ex . CancellationToken . Should ( ) . Be ( cts . Token ) ;
8990
90- ProcessEx . IsRunning ( task . ProcessId ) . Should ( ) . BeFalse ( ) ;
91+ Process . IsRunning ( task . ProcessId ) . Should ( ) . BeFalse ( ) ;
9192 stdOutBuffer . ToString ( ) . Should ( ) . Contain ( "Canceled." ) . And . NotContain ( "Done." ) ;
9293 }
9394
0 commit comments