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

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