Change from DataTestMethod to TestMethod due to obsolete attribute
This commit is contained in:
@@ -28,7 +28,7 @@ namespace Cloudflare.Core.Tests.Auth
|
||||
Assert.AreEqual(apiKey, clt.DefaultRequestHeaders.GetValues("X-Auth-Key").First());
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -44,7 +44,7 @@ namespace Cloudflare.Core.Tests.Auth
|
||||
// Assert - ArgumentNullException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -60,7 +60,7 @@ namespace Cloudflare.Core.Tests.Auth
|
||||
// Assert - ArgumentNullException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow("test")]
|
||||
[DataRow("test@example")]
|
||||
[DataRow("example.com")]
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace Cloudflare.Core.Tests.Auth
|
||||
Assert.AreEqual(apiToken, clt.DefaultRequestHeaders.Authorization.Parameter);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
|
||||
@@ -179,7 +179,7 @@ namespace Cloudflare.Core.Tests
|
||||
// Assert - ArgumentOutOfRangeException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(-1)]
|
||||
[DataRow(11)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
|
||||
// Assert - ObjectDisposedException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -137,7 +137,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
|
||||
VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(HttpStatusCode.Unauthorized)]
|
||||
[DataRow(HttpStatusCode.Forbidden)]
|
||||
public async Task ShouldThrowAuthenticationExceptionOnStatusCode(HttpStatusCode statusCode)
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
|
||||
// Assert - ObjectDisposedException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -137,7 +137,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
|
||||
VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(HttpStatusCode.Unauthorized)]
|
||||
[DataRow(HttpStatusCode.Forbidden)]
|
||||
public async Task ShouldThrowAuthenticationExceptionOnStatusCode(HttpStatusCode statusCode)
|
||||
@@ -165,7 +165,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
|
||||
}
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(HttpStatusCode.Unauthorized)]
|
||||
[DataRow(HttpStatusCode.Forbidden)]
|
||||
public async Task ShouldThrowAuthenticationExceptionOnStatusCodeWithoutErrors(HttpStatusCode statusCode)
|
||||
@@ -193,7 +193,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
|
||||
}
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(HttpStatusCode.Unauthorized)]
|
||||
[DataRow(HttpStatusCode.Forbidden)]
|
||||
[ExpectedException(typeof(CloudflareException))]
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
|
||||
// Assert - ObjectDisposedException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -197,7 +197,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
|
||||
VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(HttpStatusCode.Unauthorized)]
|
||||
[DataRow(HttpStatusCode.Forbidden)]
|
||||
public async Task ShouldThrowAuthenticationExceptionOnStatusCode(HttpStatusCode statusCode)
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
|
||||
// Assert - ObjectDisposedException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -245,7 +245,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
|
||||
_httpHandlerMock.Mock.Protected().Verify("SendAsync", Times.Once(), ItExpr.IsAny<HttpRequestMessage>(), ItExpr.IsAny<CancellationToken>());
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(HttpStatusCode.Unauthorized)]
|
||||
[DataRow(HttpStatusCode.Forbidden)]
|
||||
public async Task ShouldThrowAuthenticationExceptionOnStatusCode(HttpStatusCode statusCode)
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
|
||||
// Assert - ObjectDisposedException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -245,7 +245,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
|
||||
_httpHandlerMock.Mock.Protected().Verify("SendAsync", Times.Once(), ItExpr.IsAny<HttpRequestMessage>(), ItExpr.IsAny<CancellationToken>());
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(HttpStatusCode.Unauthorized)]
|
||||
[DataRow(HttpStatusCode.Forbidden)]
|
||||
public async Task ShouldThrowAuthenticationExceptionOnStatusCode(HttpStatusCode statusCode)
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Cloudflare.Tests.Extensions
|
||||
// Assert - no exception thrown
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -46,7 +46,7 @@ namespace Cloudflare.Tests.Extensions
|
||||
// Assert - ArgumentException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow("023e105f4ecef8ad9ca31a8372d0c35")]
|
||||
[DataRow("023e105f4ecef8ad9ca31a8372d0C353")]
|
||||
[DataRow("023e105f4ecef8ad9ca31a8372d0y353")]
|
||||
@@ -73,7 +73,7 @@ namespace Cloudflare.Tests.Extensions
|
||||
// Assert - no exception thrown
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -113,7 +113,7 @@ namespace Cloudflare.Tests.Extensions
|
||||
// Assert - no exception thrown
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -128,7 +128,7 @@ namespace Cloudflare.Tests.Extensions
|
||||
// Assert - ArgumentNullException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow("test")]
|
||||
[DataRow("test@example")]
|
||||
[DataRow("example.com")]
|
||||
@@ -143,7 +143,7 @@ namespace Cloudflare.Tests.Extensions
|
||||
// Assert - ArgumentException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("SomeExampleString")]
|
||||
public void ShouldValidateLength(string str)
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace Cloudflare.Dns.Tests.CustomNameserversExtensions
|
||||
_clientMock.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
|
||||
@@ -229,7 +229,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
|
||||
// Assert - ArgumentOutOfRangeException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(29)]
|
||||
[DataRow(86401)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -245,7 +245,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
|
||||
// Assert - ArgumentOutOfRangeException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(86399)]
|
||||
[DataRow(2419201)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -261,7 +261,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
|
||||
// Assert - ArgumentOutOfRangeException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(59)]
|
||||
[DataRow(86401)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -277,7 +277,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
|
||||
// Assert - ArgumentOutOfRangeException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -294,7 +294,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
|
||||
// Assert - ArgumentNullException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(599)]
|
||||
[DataRow(86401)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -310,7 +310,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
|
||||
// Assert - ArgumentOutOfRangeException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(599)]
|
||||
[DataRow(86401)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -326,7 +326,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
|
||||
// Assert - ArgumentOutOfRangeException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(299)]
|
||||
[DataRow(86401)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -342,7 +342,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
|
||||
// Assert - ArgumentOutOfRangeException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
|
||||
_clientMock.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
|
||||
@@ -152,7 +152,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
|
||||
Assert.AreEqual("zone.example.com", dict["zone_name"]);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -169,7 +169,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -186,7 +186,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -203,7 +203,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -220,7 +220,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow((SortDirection)0)]
|
||||
public void ShouldNotAddDirection(SortDirection? direction)
|
||||
@@ -236,7 +236,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow((FilterMatchType)0)]
|
||||
public void ShouldNotAddMatch(FilterMatchType? match)
|
||||
@@ -252,7 +252,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow((InternalDnsViewsOrderBy)0)]
|
||||
public void ShouldNotAddOrder(InternalDnsViewsOrderBy? order)
|
||||
@@ -268,7 +268,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow(0)]
|
||||
public void ShouldNotAddPage(int? page)
|
||||
@@ -284,7 +284,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow(0)]
|
||||
[DataRow(5_000_001)]
|
||||
@@ -301,7 +301,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -318,7 +318,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
|
||||
_clientMock.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
|
||||
@@ -135,7 +135,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
_clientMock.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -166,7 +166,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
// Assert - ArgumentOutOfRangeException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -304,7 +304,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
// Assert - ArgumentNullException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(DnsRecordType.MX)]
|
||||
[DataRow(DnsRecordType.URI)]
|
||||
public async Task ShouldSetPriority(DnsRecordType type)
|
||||
@@ -338,7 +338,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
_clientMock.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(DnsRecordType.MX)]
|
||||
[DataRow(DnsRecordType.URI)]
|
||||
[ExpectedException(typeof(ArgumentNullException))]
|
||||
@@ -354,7 +354,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
// Assert - ArgumentNullException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(1)]
|
||||
[DataRow(3600)]
|
||||
public async Task ShouldSetTtl(int ttl)
|
||||
@@ -380,7 +380,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
_clientMock.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(0)]
|
||||
[DataRow(20)]
|
||||
[DataRow(86401)]
|
||||
@@ -397,7 +397,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
// Assert - ArgumentOutOfRangeException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(DnsRecordType.CAA)]
|
||||
[DataRow(DnsRecordType.CERT)]
|
||||
[DataRow(DnsRecordType.DNSKEY)]
|
||||
@@ -456,7 +456,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual("letsencrypt.org", data.Value);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -474,7 +474,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
// Assert - ArgumentNullException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -525,7 +525,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(3, data.Type);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -576,7 +576,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual("test", data.PublicKey);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -627,7 +627,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(4, data.KeyTag);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -677,7 +677,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual("foo.bar", data.Value);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -695,7 +695,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
// Assert - ArgumentNullException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -736,7 +736,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
_clientMock.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(-1)]
|
||||
[DataRow(91)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -771,7 +771,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
_clientMock.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(-1)]
|
||||
[DataRow(60)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -806,7 +806,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
_clientMock.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(-1.0)]
|
||||
[DataRow(59.9991)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -874,7 +874,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
_clientMock.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(-1)]
|
||||
[DataRow(181)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -909,7 +909,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
_clientMock.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(-1)]
|
||||
[DataRow(60)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -944,7 +944,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
_clientMock.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(-1.0)]
|
||||
[DataRow(59.9991)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -1012,7 +1012,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
_clientMock.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(-100_000.1)]
|
||||
[DataRow(42_849_672.951)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -1047,7 +1047,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
_clientMock.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(-1)]
|
||||
[DataRow(90_000_001)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -1082,7 +1082,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
_clientMock.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(-1)]
|
||||
[DataRow(90_000_001)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -1117,7 +1117,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
_clientMock.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(-1)]
|
||||
[DataRow(90_000_001)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -1168,7 +1168,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual("gh", data.Service);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -1186,7 +1186,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
// Assert - ArgumentNullException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -1204,7 +1204,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
// Assert - ArgumentNullException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -1222,7 +1222,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
// Assert - ArgumentNullException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -1273,7 +1273,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(3, data.Usage);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -1325,7 +1325,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(456, data.Weight);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -1376,7 +1376,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(2, data.Type);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -1426,7 +1426,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual("example.com", data.Value);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -1444,7 +1444,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
// Assert - ArgumentNullException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -1495,7 +1495,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(3, data.Usage);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -1545,7 +1545,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(10, data.Weight);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
|
||||
@@ -120,7 +120,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
}
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(true)]
|
||||
[DataRow(false)]
|
||||
public async Task ShouldImportDnsRecordsFromStringWithProxied(bool proxied)
|
||||
@@ -159,7 +159,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
_clientMock.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(true)]
|
||||
[DataRow(false)]
|
||||
public async Task ShouldImportDnsRecordsFromFileWithProxied(bool proxied)
|
||||
@@ -208,7 +208,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
}
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
|
||||
@@ -280,7 +280,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual("A", dict["type"]);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -297,7 +297,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow(false)]
|
||||
public void ShouldNotAddCommentAbsent(bool? b)
|
||||
@@ -313,7 +313,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -330,7 +330,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -347,7 +347,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -364,7 +364,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow(false)]
|
||||
public void ShouldNotAddCommentPresent(bool? b)
|
||||
@@ -380,7 +380,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -397,7 +397,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -414,7 +414,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -431,7 +431,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -448,7 +448,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -465,7 +465,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -482,7 +482,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow((SortDirection)0)]
|
||||
public void ShouldNotAddDirection(SortDirection? direction)
|
||||
@@ -498,7 +498,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow((FilterMatchType)0)]
|
||||
public void ShouldNotAddMatch(FilterMatchType? match)
|
||||
@@ -514,7 +514,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -531,7 +531,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -548,7 +548,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -565,7 +565,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -582,7 +582,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -599,7 +599,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow((DnsRecordsOrderBy)0)]
|
||||
public void ShouldNotAddOrder(DnsRecordsOrderBy? order)
|
||||
@@ -615,7 +615,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow(0)]
|
||||
public void ShouldNotAddPage(int? page)
|
||||
@@ -631,7 +631,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow(0)]
|
||||
[DataRow(5_000_001)]
|
||||
@@ -648,7 +648,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -665,7 +665,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -682,7 +682,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -699,7 +699,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -716,7 +716,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -733,7 +733,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -750,7 +750,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -767,7 +767,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow((FilterMatchType)0)]
|
||||
public void ShouldNotAddTagMatch(FilterMatchType? tagMatch)
|
||||
@@ -783,7 +783,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow((DnsRecordType)0)]
|
||||
public void ShouldNotAddType(DnsRecordType? type)
|
||||
|
||||
@@ -191,7 +191,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
|
||||
// Assert - ArgumentOutOfRangeException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(29)]
|
||||
[DataRow(86401)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -207,7 +207,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
|
||||
// Assert - ArgumentOutOfRangeException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(86399)]
|
||||
[DataRow(2419201)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -223,7 +223,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
|
||||
// Assert - ArgumentOutOfRangeException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(59)]
|
||||
[DataRow(86401)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -239,7 +239,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
|
||||
// Assert - ArgumentOutOfRangeException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -256,7 +256,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
|
||||
// Assert - ArgumentNullException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(599)]
|
||||
[DataRow(86401)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -272,7 +272,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
|
||||
// Assert - ArgumentOutOfRangeException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(599)]
|
||||
[DataRow(86401)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -288,7 +288,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
|
||||
// Assert - ArgumentOutOfRangeException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(299)]
|
||||
[DataRow(86401)]
|
||||
[ExpectedException(typeof(ArgumentOutOfRangeException))]
|
||||
@@ -304,7 +304,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
|
||||
// Assert - ArgumentOutOfRangeException
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace Cloudflare.Zones.Tests.RegistrarExtensions
|
||||
_clientMock.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace Cloudflare.Zones.Tests.RegistrarExtensions
|
||||
_clientMock.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
|
||||
@@ -116,7 +116,7 @@ namespace Cloudflare.Zones.Tests.ZoneHoldsExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(true)]
|
||||
[DataRow(false)]
|
||||
public void ShouldReturnQueryParameter(bool includeSubdomains)
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace Cloudflare.Zones.Tests.ZoneSettingsExtensions
|
||||
Assert.IsFalse(callback.Request.ContainsKey("enabled"));
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(true)]
|
||||
[DataRow(false)]
|
||||
public async Task ShouldEditEnabledState(bool enabled)
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
|
||||
};
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null, ZoneType.Full)]
|
||||
[DataRow("023e105f4ecef8ad9ca31a8372d0c353", null)]
|
||||
public async Task ShouldCreateZone(string accountId, ZoneType? type)
|
||||
|
||||
@@ -207,7 +207,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
|
||||
Assert.AreEqual("active", dict["status"]);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -227,7 +227,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -281,7 +281,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(null)]
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
@@ -335,7 +335,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
|
||||
Assert.AreEqual(0, dict.Count);
|
||||
}
|
||||
|
||||
[DataTestMethod]
|
||||
[TestMethod]
|
||||
[DataRow(4)]
|
||||
[DataRow(51)]
|
||||
public void ShouldNotAddPerPage(int perPage)
|
||||
|
||||
Reference in New Issue
Block a user