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

@@ -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(" ")]