1
0

Updating to VS 2026

This commit is contained in:
2025-11-13 20:30:44 +01:00
parent 1096186c40
commit 1767b55c8a
29 changed files with 230 additions and 277 deletions

View File

@@ -5,7 +5,7 @@ namespace AMWD.Common.Tests.Comparer
[TestClass]
public class DomainComparerTest
{
[DataTestMethod]
[TestMethod]
[DataRow("int", "internal")]
[DataRow("int", "dom.int")]
[DataRow("a.ins", "a.int")]
@@ -22,7 +22,7 @@ namespace AMWD.Common.Tests.Comparer
Assert.AreEqual(-1, result);
}
[DataTestMethod]
[TestMethod]
[DataRow("internal", "int")]
[DataRow("dom.int", "int")]
[DataRow("a.int", "a.ins")]
@@ -39,7 +39,7 @@ namespace AMWD.Common.Tests.Comparer
Assert.AreEqual(1, result);
}
[DataTestMethod]
[TestMethod]
[DataRow("internal", "internal")]
[DataRow("dom.int", "dom.int")]
[DataRow("a.internal", "a.internal")]

View File

@@ -6,7 +6,7 @@ namespace AMWD.Common.Tests.Comparer
[TestClass]
public class IPAddressComparerTest
{
[DataTestMethod]
[TestMethod]
[DataRow("127.0.0.0", "127.0.0.1")]
[DataRow("fe80::", "fe80::1")]
[DataRow("::ffff:7f00:0", "127.0.0.1")]
@@ -22,7 +22,7 @@ namespace AMWD.Common.Tests.Comparer
Assert.AreEqual(-1, result);
}
[DataTestMethod]
[TestMethod]
[DataRow("127.0.0.1", "127.0.0.0")]
[DataRow("fe80::1", "fe80::")]
[DataRow("::ffff:7f00:1", "127.0.0.0")]
@@ -38,7 +38,7 @@ namespace AMWD.Common.Tests.Comparer
Assert.AreEqual(1, result);
}
[DataTestMethod]
[TestMethod]
[DataRow("127.0.0.1", "127.0.0.1")]
[DataRow("fe80::1", "fe80::1")]
[DataRow("::ffff:7f00:1", "127.0.0.1")]

View File

@@ -5,7 +5,7 @@ namespace AMWD.Common.Tests.Comparer
[TestClass]
public class VersionStringComparerTest
{
[DataTestMethod]
[TestMethod]
[DataRow(null, "0")]
[DataRow("", "0")]
[DataRow("0", "1")]
@@ -25,7 +25,7 @@ namespace AMWD.Common.Tests.Comparer
Assert.AreEqual(-1, result);
}
[DataTestMethod]
[TestMethod]
[DataRow("0", null)]
[DataRow("0", "")]
[DataRow("1", "0")]
@@ -45,7 +45,7 @@ namespace AMWD.Common.Tests.Comparer
Assert.AreEqual(1, result);
}
[DataTestMethod]
[TestMethod]
[DataRow(null, null)]
[DataRow("", "")]
[DataRow("1", "1")]