@@ -69,13 +69,6 @@ namespace Tests
Assert.True(result);
}
- private static IEnumerable<int> Blocking(ManualResetEvent evt, ManualResetEvent blockingStarted)
- {
- blockingStarted.Set();
- evt.WaitOne();
- yield return 42;
- }
-
[Fact]
public async Task TakeOneFromSelectMany()
{
@@ -9,8 +9,6 @@ namespace Tests
public partial class AsyncTests
- private const int WaitTimeoutMs = 5000;
#pragma warning disable xUnit1013 // Public method should be marked as test
public void AssertThrows<E>(Action a)
where E : Exception
@@ -85,26 +85,5 @@ namespace Tests
disposeAsync: null)
);
- private void AssertThrows<E>(Action a, Func<E, bool> assert)
- where E : Exception
- var hasFailed = false;
- try
- a();
- catch (E e)
- Assert.True(assert(e));
- hasFailed = true;
- if (!hasFailed)
- Assert.True(false);