Files
octokit.net/Octokit.Tests/SelfTests.cs
Haacked 1b4d02b142 Ensure no async void methods
Added self tests to find async void methods. It found some cases where
we passed an async lambda to a method that did not accept Action<Task>
or Func<Task>. I fixed those tests.
2014-11-07 16:05:53 -08:00

15 lines
284 B
C#

using Xunit;
/// <summary>
/// Tests to make sure our tests are ok.
/// </summary>
public class SelfTests
{
[Fact]
public void NoTestsUseAsyncVoid()
{
var errors = typeof(SelfTests).Assembly.GetAsyncVoidMethodsList();
Assert.Equal("", errors);
}
}