}
[Fact]
- public async void Write_To_UnseekableStream_Async()
+ public async Task Write_To_UnseekableStream_Async()
{
await using (MemoryStream inner = new MemoryStream())
{
}
[Fact]
- public async void Invalid_Token()
+ public async Task Invalid_Token()
{
using var kerberosExecutor = new KerberosExecutor(_testOutputHelper, "LINUX.CONTOSO.COM");
// Force a non-empty keytab to make macOS happy
{
[Fact]
[SkipOnPlatform(TestPlatforms.Browser, "Wasm is single-threaded, which makes TestEventListener ineffective.")]
- public async void Basic_Counters()
+ public async Task Basic_Counters()
{
string cacheName = "Basic_Counters_Test";
var cip = new CacheItemPolicy() { /* _absExpiry = ObjectCache.InfiniteAbsoluteExpiration */ };
}
[Fact]
- public async void Period_AffectsPendingWaits()
+ public async Task Period_AffectsPendingWaits()
{
using PeriodicTimer timer = new PeriodicTimer(TimeSpan.FromDays(40));
[Theory]
[MemberData(nameof(Match_DeepNesting_MemberData))]
- public async void Match_DeepNesting(RegexEngine engine, int count)
+ public async Task Match_DeepNesting(RegexEngine engine, int count)
{
const string Start = @"((?>abc|(?:def[ghi]", End = @")))";
const string Match = "defg";
}
[Fact]
- public async void TryReplenishWithAllTokensAvailable_Noops()
+ public async Task TryReplenishWithAllTokensAvailable_Noops()
{
var limiter = new TokenBucketRateLimiter(new TokenBucketRateLimiterOptions
{
}
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
- public static async void CancellationTokenSource_CancelAsync_CallbacksInvokedAsynchronously()
+ public static async Task CancellationTokenSource_CancelAsync_CallbacksInvokedAsynchronously()
{
var cts = new CancellationTokenSource();
}
[Fact]
- public async void BeginFromTask_CompletedAsynchronously_CallbackInvokedAsynchronously()
+ public async Task BeginFromTask_CompletedAsynchronously_CallbackInvokedAsynchronously()
{
var tcs = new TaskCompletionSource();
var invoked = new TaskCompletionSource();