Change from DataTestMethod to TestMethod due to obsolete attribute

This commit is contained in:
2025-08-04 15:46:47 +02:00
parent 5697b8f921
commit 874ea58d87
24 changed files with 131 additions and 131 deletions

View File

@@ -28,7 +28,7 @@ namespace Cloudflare.Core.Tests.Auth
Assert.AreEqual(apiKey, clt.DefaultRequestHeaders.GetValues("X-Auth-Key").First()); Assert.AreEqual(apiKey, clt.DefaultRequestHeaders.GetValues("X-Auth-Key").First());
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -44,7 +44,7 @@ namespace Cloudflare.Core.Tests.Auth
// Assert - ArgumentNullException // Assert - ArgumentNullException
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -60,7 +60,7 @@ namespace Cloudflare.Core.Tests.Auth
// Assert - ArgumentNullException // Assert - ArgumentNullException
} }
[DataTestMethod] [TestMethod]
[DataRow("test")] [DataRow("test")]
[DataRow("test@example")] [DataRow("test@example")]
[DataRow("example.com")] [DataRow("example.com")]

View File

@@ -25,7 +25,7 @@ namespace Cloudflare.Core.Tests.Auth
Assert.AreEqual(apiToken, clt.DefaultRequestHeaders.Authorization.Parameter); Assert.AreEqual(apiToken, clt.DefaultRequestHeaders.Authorization.Parameter);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]

View File

@@ -179,7 +179,7 @@ namespace Cloudflare.Core.Tests
// Assert - ArgumentOutOfRangeException // Assert - ArgumentOutOfRangeException
} }
[DataTestMethod] [TestMethod]
[DataRow(-1)] [DataRow(-1)]
[DataRow(11)] [DataRow(11)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]

View File

@@ -57,7 +57,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
// Assert - ObjectDisposedException // Assert - ObjectDisposedException
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -137,7 +137,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
VerifyNoOtherCalls(); VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(HttpStatusCode.Unauthorized)] [DataRow(HttpStatusCode.Unauthorized)]
[DataRow(HttpStatusCode.Forbidden)] [DataRow(HttpStatusCode.Forbidden)]
public async Task ShouldThrowAuthenticationExceptionOnStatusCode(HttpStatusCode statusCode) public async Task ShouldThrowAuthenticationExceptionOnStatusCode(HttpStatusCode statusCode)

View File

@@ -57,7 +57,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
// Assert - ObjectDisposedException // Assert - ObjectDisposedException
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -137,7 +137,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
VerifyNoOtherCalls(); VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(HttpStatusCode.Unauthorized)] [DataRow(HttpStatusCode.Unauthorized)]
[DataRow(HttpStatusCode.Forbidden)] [DataRow(HttpStatusCode.Forbidden)]
public async Task ShouldThrowAuthenticationExceptionOnStatusCode(HttpStatusCode statusCode) public async Task ShouldThrowAuthenticationExceptionOnStatusCode(HttpStatusCode statusCode)
@@ -165,7 +165,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
} }
} }
[DataTestMethod] [TestMethod]
[DataRow(HttpStatusCode.Unauthorized)] [DataRow(HttpStatusCode.Unauthorized)]
[DataRow(HttpStatusCode.Forbidden)] [DataRow(HttpStatusCode.Forbidden)]
public async Task ShouldThrowAuthenticationExceptionOnStatusCodeWithoutErrors(HttpStatusCode statusCode) public async Task ShouldThrowAuthenticationExceptionOnStatusCodeWithoutErrors(HttpStatusCode statusCode)
@@ -193,7 +193,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
} }
} }
[DataTestMethod] [TestMethod]
[DataRow(HttpStatusCode.Unauthorized)] [DataRow(HttpStatusCode.Unauthorized)]
[DataRow(HttpStatusCode.Forbidden)] [DataRow(HttpStatusCode.Forbidden)]
[ExpectedException(typeof(CloudflareException))] [ExpectedException(typeof(CloudflareException))]

View File

@@ -65,7 +65,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
// Assert - ObjectDisposedException // Assert - ObjectDisposedException
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -197,7 +197,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
VerifyNoOtherCalls(); VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(HttpStatusCode.Unauthorized)] [DataRow(HttpStatusCode.Unauthorized)]
[DataRow(HttpStatusCode.Forbidden)] [DataRow(HttpStatusCode.Forbidden)]
public async Task ShouldThrowAuthenticationExceptionOnStatusCode(HttpStatusCode statusCode) public async Task ShouldThrowAuthenticationExceptionOnStatusCode(HttpStatusCode statusCode)

View File

@@ -65,7 +65,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
// Assert - ObjectDisposedException // Assert - ObjectDisposedException
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -245,7 +245,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
_httpHandlerMock.Mock.Protected().Verify("SendAsync", Times.Once(), ItExpr.IsAny<HttpRequestMessage>(), ItExpr.IsAny<CancellationToken>()); _httpHandlerMock.Mock.Protected().Verify("SendAsync", Times.Once(), ItExpr.IsAny<HttpRequestMessage>(), ItExpr.IsAny<CancellationToken>());
} }
[DataTestMethod] [TestMethod]
[DataRow(HttpStatusCode.Unauthorized)] [DataRow(HttpStatusCode.Unauthorized)]
[DataRow(HttpStatusCode.Forbidden)] [DataRow(HttpStatusCode.Forbidden)]
public async Task ShouldThrowAuthenticationExceptionOnStatusCode(HttpStatusCode statusCode) public async Task ShouldThrowAuthenticationExceptionOnStatusCode(HttpStatusCode statusCode)

View File

@@ -65,7 +65,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
// Assert - ObjectDisposedException // Assert - ObjectDisposedException
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -245,7 +245,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
_httpHandlerMock.Mock.Protected().Verify("SendAsync", Times.Once(), ItExpr.IsAny<HttpRequestMessage>(), ItExpr.IsAny<CancellationToken>()); _httpHandlerMock.Mock.Protected().Verify("SendAsync", Times.Once(), ItExpr.IsAny<HttpRequestMessage>(), ItExpr.IsAny<CancellationToken>());
} }
[DataTestMethod] [TestMethod]
[DataRow(HttpStatusCode.Unauthorized)] [DataRow(HttpStatusCode.Unauthorized)]
[DataRow(HttpStatusCode.Forbidden)] [DataRow(HttpStatusCode.Forbidden)]
public async Task ShouldThrowAuthenticationExceptionOnStatusCode(HttpStatusCode statusCode) public async Task ShouldThrowAuthenticationExceptionOnStatusCode(HttpStatusCode statusCode)

View File

@@ -18,7 +18,7 @@ namespace Cloudflare.Tests.Extensions
// Assert - no exception thrown // Assert - no exception thrown
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -46,7 +46,7 @@ namespace Cloudflare.Tests.Extensions
// Assert - ArgumentException // Assert - ArgumentException
} }
[DataTestMethod] [TestMethod]
[DataRow("023e105f4ecef8ad9ca31a8372d0c35")] [DataRow("023e105f4ecef8ad9ca31a8372d0c35")]
[DataRow("023e105f4ecef8ad9ca31a8372d0C353")] [DataRow("023e105f4ecef8ad9ca31a8372d0C353")]
[DataRow("023e105f4ecef8ad9ca31a8372d0y353")] [DataRow("023e105f4ecef8ad9ca31a8372d0y353")]
@@ -73,7 +73,7 @@ namespace Cloudflare.Tests.Extensions
// Assert - no exception thrown // Assert - no exception thrown
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -113,7 +113,7 @@ namespace Cloudflare.Tests.Extensions
// Assert - no exception thrown // Assert - no exception thrown
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -128,7 +128,7 @@ namespace Cloudflare.Tests.Extensions
// Assert - ArgumentNullException // Assert - ArgumentNullException
} }
[DataTestMethod] [TestMethod]
[DataRow("test")] [DataRow("test")]
[DataRow("test@example")] [DataRow("test@example")]
[DataRow("example.com")] [DataRow("example.com")]
@@ -143,7 +143,7 @@ namespace Cloudflare.Tests.Extensions
// Assert - ArgumentException // Assert - ArgumentException
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("SomeExampleString")] [DataRow("SomeExampleString")]
public void ShouldValidateLength(string str) public void ShouldValidateLength(string str)

View File

@@ -62,7 +62,7 @@ namespace Cloudflare.Dns.Tests.CustomNameserversExtensions
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]

View File

@@ -229,7 +229,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
// Assert - ArgumentOutOfRangeException // Assert - ArgumentOutOfRangeException
} }
[DataTestMethod] [TestMethod]
[DataRow(29)] [DataRow(29)]
[DataRow(86401)] [DataRow(86401)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -245,7 +245,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
// Assert - ArgumentOutOfRangeException // Assert - ArgumentOutOfRangeException
} }
[DataTestMethod] [TestMethod]
[DataRow(86399)] [DataRow(86399)]
[DataRow(2419201)] [DataRow(2419201)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -261,7 +261,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
// Assert - ArgumentOutOfRangeException // Assert - ArgumentOutOfRangeException
} }
[DataTestMethod] [TestMethod]
[DataRow(59)] [DataRow(59)]
[DataRow(86401)] [DataRow(86401)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -277,7 +277,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
// Assert - ArgumentOutOfRangeException // Assert - ArgumentOutOfRangeException
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -294,7 +294,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
// Assert - ArgumentNullException // Assert - ArgumentNullException
} }
[DataTestMethod] [TestMethod]
[DataRow(599)] [DataRow(599)]
[DataRow(86401)] [DataRow(86401)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -310,7 +310,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
// Assert - ArgumentOutOfRangeException // Assert - ArgumentOutOfRangeException
} }
[DataTestMethod] [TestMethod]
[DataRow(599)] [DataRow(599)]
[DataRow(86401)] [DataRow(86401)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -326,7 +326,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
// Assert - ArgumentOutOfRangeException // Assert - ArgumentOutOfRangeException
} }
[DataTestMethod] [TestMethod]
[DataRow(299)] [DataRow(299)]
[DataRow(86401)] [DataRow(86401)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -342,7 +342,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
// Assert - ArgumentOutOfRangeException // Assert - ArgumentOutOfRangeException
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]

View File

@@ -70,7 +70,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]

View File

@@ -152,7 +152,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
Assert.AreEqual("zone.example.com", dict["zone_name"]); Assert.AreEqual("zone.example.com", dict["zone_name"]);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -169,7 +169,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -186,7 +186,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -203,7 +203,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -220,7 +220,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow((SortDirection)0)] [DataRow((SortDirection)0)]
public void ShouldNotAddDirection(SortDirection? direction) public void ShouldNotAddDirection(SortDirection? direction)
@@ -236,7 +236,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow((FilterMatchType)0)] [DataRow((FilterMatchType)0)]
public void ShouldNotAddMatch(FilterMatchType? match) public void ShouldNotAddMatch(FilterMatchType? match)
@@ -252,7 +252,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow((InternalDnsViewsOrderBy)0)] [DataRow((InternalDnsViewsOrderBy)0)]
public void ShouldNotAddOrder(InternalDnsViewsOrderBy? order) public void ShouldNotAddOrder(InternalDnsViewsOrderBy? order)
@@ -268,7 +268,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow(0)] [DataRow(0)]
public void ShouldNotAddPage(int? page) public void ShouldNotAddPage(int? page)
@@ -284,7 +284,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow(0)] [DataRow(0)]
[DataRow(5_000_001)] [DataRow(5_000_001)]
@@ -301,7 +301,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -318,7 +318,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]

View File

@@ -73,7 +73,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]

View File

@@ -135,7 +135,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -166,7 +166,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Assert - ArgumentOutOfRangeException // Assert - ArgumentOutOfRangeException
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -304,7 +304,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Assert - ArgumentNullException // Assert - ArgumentNullException
} }
[DataTestMethod] [TestMethod]
[DataRow(DnsRecordType.MX)] [DataRow(DnsRecordType.MX)]
[DataRow(DnsRecordType.URI)] [DataRow(DnsRecordType.URI)]
public async Task ShouldSetPriority(DnsRecordType type) public async Task ShouldSetPriority(DnsRecordType type)
@@ -338,7 +338,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(DnsRecordType.MX)] [DataRow(DnsRecordType.MX)]
[DataRow(DnsRecordType.URI)] [DataRow(DnsRecordType.URI)]
[ExpectedException(typeof(ArgumentNullException))] [ExpectedException(typeof(ArgumentNullException))]
@@ -354,7 +354,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Assert - ArgumentNullException // Assert - ArgumentNullException
} }
[DataTestMethod] [TestMethod]
[DataRow(1)] [DataRow(1)]
[DataRow(3600)] [DataRow(3600)]
public async Task ShouldSetTtl(int ttl) public async Task ShouldSetTtl(int ttl)
@@ -380,7 +380,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(0)] [DataRow(0)]
[DataRow(20)] [DataRow(20)]
[DataRow(86401)] [DataRow(86401)]
@@ -397,7 +397,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Assert - ArgumentOutOfRangeException // Assert - ArgumentOutOfRangeException
} }
[DataTestMethod] [TestMethod]
[DataRow(DnsRecordType.CAA)] [DataRow(DnsRecordType.CAA)]
[DataRow(DnsRecordType.CERT)] [DataRow(DnsRecordType.CERT)]
[DataRow(DnsRecordType.DNSKEY)] [DataRow(DnsRecordType.DNSKEY)]
@@ -456,7 +456,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual("letsencrypt.org", data.Value); Assert.AreEqual("letsencrypt.org", data.Value);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -474,7 +474,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Assert - ArgumentNullException // Assert - ArgumentNullException
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -525,7 +525,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(3, data.Type); Assert.AreEqual(3, data.Type);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -576,7 +576,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual("test", data.PublicKey); Assert.AreEqual("test", data.PublicKey);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -627,7 +627,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(4, data.KeyTag); Assert.AreEqual(4, data.KeyTag);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -677,7 +677,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual("foo.bar", data.Value); Assert.AreEqual("foo.bar", data.Value);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -695,7 +695,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Assert - ArgumentNullException // Assert - ArgumentNullException
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -736,7 +736,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(-1)] [DataRow(-1)]
[DataRow(91)] [DataRow(91)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -771,7 +771,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(-1)] [DataRow(-1)]
[DataRow(60)] [DataRow(60)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -806,7 +806,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(-1.0)] [DataRow(-1.0)]
[DataRow(59.9991)] [DataRow(59.9991)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -874,7 +874,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(-1)] [DataRow(-1)]
[DataRow(181)] [DataRow(181)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -909,7 +909,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(-1)] [DataRow(-1)]
[DataRow(60)] [DataRow(60)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -944,7 +944,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(-1.0)] [DataRow(-1.0)]
[DataRow(59.9991)] [DataRow(59.9991)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -1012,7 +1012,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(-100_000.1)] [DataRow(-100_000.1)]
[DataRow(42_849_672.951)] [DataRow(42_849_672.951)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -1047,7 +1047,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(-1)] [DataRow(-1)]
[DataRow(90_000_001)] [DataRow(90_000_001)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -1082,7 +1082,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(-1)] [DataRow(-1)]
[DataRow(90_000_001)] [DataRow(90_000_001)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -1117,7 +1117,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(-1)] [DataRow(-1)]
[DataRow(90_000_001)] [DataRow(90_000_001)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -1168,7 +1168,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual("gh", data.Service); Assert.AreEqual("gh", data.Service);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -1186,7 +1186,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Assert - ArgumentNullException // Assert - ArgumentNullException
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -1204,7 +1204,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Assert - ArgumentNullException // Assert - ArgumentNullException
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -1222,7 +1222,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Assert - ArgumentNullException // Assert - ArgumentNullException
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -1273,7 +1273,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(3, data.Usage); Assert.AreEqual(3, data.Usage);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -1325,7 +1325,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(456, data.Weight); Assert.AreEqual(456, data.Weight);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -1376,7 +1376,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(2, data.Type); Assert.AreEqual(2, data.Type);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -1426,7 +1426,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual("example.com", data.Value); Assert.AreEqual("example.com", data.Value);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -1444,7 +1444,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Assert - ArgumentNullException // Assert - ArgumentNullException
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -1495,7 +1495,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(3, data.Usage); Assert.AreEqual(3, data.Usage);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -1545,7 +1545,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(10, data.Weight); Assert.AreEqual(10, data.Weight);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]

View File

@@ -120,7 +120,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
} }
} }
[DataTestMethod] [TestMethod]
[DataRow(true)] [DataRow(true)]
[DataRow(false)] [DataRow(false)]
public async Task ShouldImportDnsRecordsFromStringWithProxied(bool proxied) public async Task ShouldImportDnsRecordsFromStringWithProxied(bool proxied)
@@ -159,7 +159,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(true)] [DataRow(true)]
[DataRow(false)] [DataRow(false)]
public async Task ShouldImportDnsRecordsFromFileWithProxied(bool proxied) public async Task ShouldImportDnsRecordsFromFileWithProxied(bool proxied)
@@ -208,7 +208,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
} }
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]

View File

@@ -280,7 +280,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual("A", dict["type"]); Assert.AreEqual("A", dict["type"]);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -297,7 +297,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow(false)] [DataRow(false)]
public void ShouldNotAddCommentAbsent(bool? b) public void ShouldNotAddCommentAbsent(bool? b)
@@ -313,7 +313,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -330,7 +330,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -347,7 +347,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -364,7 +364,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow(false)] [DataRow(false)]
public void ShouldNotAddCommentPresent(bool? b) public void ShouldNotAddCommentPresent(bool? b)
@@ -380,7 +380,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -397,7 +397,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -414,7 +414,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -431,7 +431,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -448,7 +448,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -465,7 +465,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -482,7 +482,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow((SortDirection)0)] [DataRow((SortDirection)0)]
public void ShouldNotAddDirection(SortDirection? direction) public void ShouldNotAddDirection(SortDirection? direction)
@@ -498,7 +498,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow((FilterMatchType)0)] [DataRow((FilterMatchType)0)]
public void ShouldNotAddMatch(FilterMatchType? match) public void ShouldNotAddMatch(FilterMatchType? match)
@@ -514,7 +514,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -531,7 +531,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -548,7 +548,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -565,7 +565,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -582,7 +582,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -599,7 +599,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow((DnsRecordsOrderBy)0)] [DataRow((DnsRecordsOrderBy)0)]
public void ShouldNotAddOrder(DnsRecordsOrderBy? order) public void ShouldNotAddOrder(DnsRecordsOrderBy? order)
@@ -615,7 +615,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow(0)] [DataRow(0)]
public void ShouldNotAddPage(int? page) public void ShouldNotAddPage(int? page)
@@ -631,7 +631,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow(0)] [DataRow(0)]
[DataRow(5_000_001)] [DataRow(5_000_001)]
@@ -648,7 +648,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -665,7 +665,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -682,7 +682,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -699,7 +699,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -716,7 +716,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -733,7 +733,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -750,7 +750,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -767,7 +767,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow((FilterMatchType)0)] [DataRow((FilterMatchType)0)]
public void ShouldNotAddTagMatch(FilterMatchType? tagMatch) public void ShouldNotAddTagMatch(FilterMatchType? tagMatch)
@@ -783,7 +783,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow((DnsRecordType)0)] [DataRow((DnsRecordType)0)]
public void ShouldNotAddType(DnsRecordType? type) public void ShouldNotAddType(DnsRecordType? type)

View File

@@ -191,7 +191,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
// Assert - ArgumentOutOfRangeException // Assert - ArgumentOutOfRangeException
} }
[DataTestMethod] [TestMethod]
[DataRow(29)] [DataRow(29)]
[DataRow(86401)] [DataRow(86401)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -207,7 +207,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
// Assert - ArgumentOutOfRangeException // Assert - ArgumentOutOfRangeException
} }
[DataTestMethod] [TestMethod]
[DataRow(86399)] [DataRow(86399)]
[DataRow(2419201)] [DataRow(2419201)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -223,7 +223,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
// Assert - ArgumentOutOfRangeException // Assert - ArgumentOutOfRangeException
} }
[DataTestMethod] [TestMethod]
[DataRow(59)] [DataRow(59)]
[DataRow(86401)] [DataRow(86401)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -239,7 +239,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
// Assert - ArgumentOutOfRangeException // Assert - ArgumentOutOfRangeException
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -256,7 +256,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
// Assert - ArgumentNullException // Assert - ArgumentNullException
} }
[DataTestMethod] [TestMethod]
[DataRow(599)] [DataRow(599)]
[DataRow(86401)] [DataRow(86401)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -272,7 +272,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
// Assert - ArgumentOutOfRangeException // Assert - ArgumentOutOfRangeException
} }
[DataTestMethod] [TestMethod]
[DataRow(599)] [DataRow(599)]
[DataRow(86401)] [DataRow(86401)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -288,7 +288,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
// Assert - ArgumentOutOfRangeException // Assert - ArgumentOutOfRangeException
} }
[DataTestMethod] [TestMethod]
[DataRow(299)] [DataRow(299)]
[DataRow(86401)] [DataRow(86401)]
[ExpectedException(typeof(ArgumentOutOfRangeException))] [ExpectedException(typeof(ArgumentOutOfRangeException))]
@@ -304,7 +304,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
// Assert - ArgumentOutOfRangeException // Assert - ArgumentOutOfRangeException
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]

View File

@@ -51,7 +51,7 @@ namespace Cloudflare.Zones.Tests.RegistrarExtensions
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]

View File

@@ -64,7 +64,7 @@ namespace Cloudflare.Zones.Tests.RegistrarExtensions
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]

View File

@@ -116,7 +116,7 @@ namespace Cloudflare.Zones.Tests.ZoneHoldsExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(true)] [DataRow(true)]
[DataRow(false)] [DataRow(false)]
public void ShouldReturnQueryParameter(bool includeSubdomains) public void ShouldReturnQueryParameter(bool includeSubdomains)

View File

@@ -68,7 +68,7 @@ namespace Cloudflare.Zones.Tests.ZoneSettingsExtensions
Assert.IsFalse(callback.Request.ContainsKey("enabled")); Assert.IsFalse(callback.Request.ContainsKey("enabled"));
} }
[DataTestMethod] [TestMethod]
[DataRow(true)] [DataRow(true)]
[DataRow(false)] [DataRow(false)]
public async Task ShouldEditEnabledState(bool enabled) public async Task ShouldEditEnabledState(bool enabled)

View File

@@ -94,7 +94,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
}; };
} }
[DataTestMethod] [TestMethod]
[DataRow(null, ZoneType.Full)] [DataRow(null, ZoneType.Full)]
[DataRow("023e105f4ecef8ad9ca31a8372d0c353", null)] [DataRow("023e105f4ecef8ad9ca31a8372d0c353", null)]
public async Task ShouldCreateZone(string accountId, ZoneType? type) public async Task ShouldCreateZone(string accountId, ZoneType? type)

View File

@@ -207,7 +207,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
Assert.AreEqual("active", dict["status"]); Assert.AreEqual("active", dict["status"]);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -227,7 +227,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -281,7 +281,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(null)] [DataRow(null)]
[DataRow("")] [DataRow("")]
[DataRow(" ")] [DataRow(" ")]
@@ -335,7 +335,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
Assert.AreEqual(0, dict.Count); Assert.AreEqual(0, dict.Count);
} }
[DataTestMethod] [TestMethod]
[DataRow(4)] [DataRow(4)]
[DataRow(51)] [DataRow(51)]
public void ShouldNotAddPerPage(int perPage) public void ShouldNotAddPerPage(int perPage)