mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-01 10:25:36 +00:00
1b4d02b142
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.
15 lines
284 B
C#
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);
|
|
}
|
|
}
|