Updated UnitTests

This commit is contained in:
2025-10-27 16:29:31 +01:00
parent 4d05976ff6
commit 69816d0c02
56 changed files with 247 additions and 246 deletions

View File

@@ -53,7 +53,7 @@ namespace Cloudflare.Zones.Tests.ZoneSettingsExtensions
var client = GetClient();
// Act
var response = await client.EditZoneSetting(_request, TestContext.CancellationTokenSource.Token);
var response = await client.EditZoneSetting(_request, TestContext.CancellationToken);
// Assert
Assert.IsNotNull(response);
@@ -80,7 +80,7 @@ namespace Cloudflare.Zones.Tests.ZoneSettingsExtensions
var client = GetClient();
// Act
var response = await client.EditZoneSetting(_request, TestContext.CancellationTokenSource.Token);
var response = await client.EditZoneSetting(_request, TestContext.CancellationToken);
// Assert
Assert.IsNotNull(response);
@@ -105,7 +105,7 @@ namespace Cloudflare.Zones.Tests.ZoneSettingsExtensions
var client = GetClient();
// Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentException>(async () => await client.EditZoneSetting(request, TestContext.CancellationTokenSource.Token));
await Assert.ThrowsExactlyAsync<ArgumentException>(async () => await client.EditZoneSetting(request, TestContext.CancellationToken));
}
private ICloudflareClient GetClient()