Change from DataTestMethod to TestMethod due to obsolete attribute
This commit is contained in:
@@ -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(" ")]
|
||||
|
||||
Reference in New Issue
Block a user