|
|
|
@ -21,6 +21,7 @@ namespace NzbDrone.Common.Test.TPLTests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
[Retry(3)]
|
|
|
|
|
public void should_hold_the_call_for_debounce_duration()
|
|
|
|
|
{
|
|
|
|
|
var counter = new Counter();
|
|
|
|
@ -40,6 +41,7 @@ namespace NzbDrone.Common.Test.TPLTests
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
[Retry(3)]
|
|
|
|
|
public void should_throttle_calls()
|
|
|
|
|
{
|
|
|
|
|
var counter = new Counter();
|
|
|
|
@ -65,6 +67,7 @@ namespace NzbDrone.Common.Test.TPLTests
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
[Retry(3)]
|
|
|
|
|
public void should_hold_the_call_while_paused()
|
|
|
|
|
{
|
|
|
|
|
var counter = new Counter();
|
|
|
|
@ -98,6 +101,7 @@ namespace NzbDrone.Common.Test.TPLTests
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
[Retry(3)]
|
|
|
|
|
public void should_handle_pause_reentrancy()
|
|
|
|
|
{
|
|
|
|
|
var counter = new Counter();
|
|
|
|
|