@@ -89,7 +89,7 @@ public void Signal_CurrentCountZero()
8989 public void Wait_TimeoutInfinite_ShouldBlockUntilCountdownEventIsSet ( )
9090 {
9191 var sleep = TimeSpan . FromMilliseconds ( 100 ) ;
92- var timeout = Session . InfiniteTimeSpan ;
92+ var timeout = Timeout . InfiniteTimeSpan ;
9393
9494 var countdownEvent = CreateCountdownEvent ( 1 ) ;
9595 var signalCount = 0 ;
@@ -205,7 +205,7 @@ public void Wait_ShouldReturnFalseWhenTimeoutExpiresBeforeCountdownEventIsSet()
205205 Assert . IsFalse ( countdownEvent . IsSet ) ;
206206 Assert . IsFalse ( countdownEvent . WaitHandle . WaitOne ( 0 ) ) ;
207207
208- _ = countdownEvent . Wait ( Session . InfiniteTimeSpan ) ;
208+ _ = countdownEvent . Wait ( Timeout . InfiniteTimeSpan ) ;
209209 countdownEvent . Dispose ( ) ;
210210 }
211211
@@ -225,7 +225,7 @@ public void WaitHandle_ShouldAlwaysReturnSameInstance()
225225 public void WaitHandle_WaitOne_TimeoutInfinite_ShouldBlockUntilCountdownEventIsSet ( )
226226 {
227227 var sleep = TimeSpan . FromMilliseconds ( 100 ) ;
228- var timeout = Session . InfiniteTimeSpan ;
228+ var timeout = Timeout . InfiniteTimeSpan ;
229229
230230 var countdownEvent = CreateCountdownEvent ( 1 ) ;
231231 var signalCount = 0 ;
@@ -341,7 +341,7 @@ public void WaitHandle_WaitOne_ShouldReturnFalseWhenTimeoutExpiresBeforeCountdow
341341 Assert . IsFalse ( countdownEvent . IsSet ) ;
342342 Assert . IsFalse ( countdownEvent . WaitHandle . WaitOne ( 0 ) ) ;
343343
344- _ = countdownEvent . Wait ( Session . InfiniteTimeSpan ) ;
344+ _ = countdownEvent . Wait ( Timeout . InfiniteTimeSpan ) ;
345345 countdownEvent . Dispose ( ) ;
346346 }
347347
0 commit comments