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