Updating to VS 2026
This commit is contained in:
@@ -114,8 +114,8 @@ namespace UnitTests.Common.Utilities
|
||||
|
||||
// assert
|
||||
CollectionAssert.AreNotEqual(cipher1, cipher2);
|
||||
Assert.AreEqual(24, cipher1.Length);
|
||||
Assert.AreEqual(24, cipher2.Length);
|
||||
Assert.HasCount(24, cipher1);
|
||||
Assert.HasCount(24, cipher2);
|
||||
CollectionAssert.AreEqual(plain, plain1);
|
||||
CollectionAssert.AreEqual(plain, plain2);
|
||||
}
|
||||
@@ -228,8 +228,8 @@ namespace UnitTests.Common.Utilities
|
||||
|
||||
// assert
|
||||
CollectionAssert.AreNotEqual(cipher1, cipher2);
|
||||
Assert.AreEqual(16, cipher1.Length);
|
||||
Assert.AreEqual(16, cipher2.Length);
|
||||
Assert.HasCount(16, cipher1);
|
||||
Assert.HasCount(16, cipher2);
|
||||
CollectionAssert.AreEqual(plain, plain1);
|
||||
CollectionAssert.AreEqual(plain, plain2);
|
||||
}
|
||||
@@ -368,11 +368,11 @@ namespace UnitTests.Common.Utilities
|
||||
byte[] bytes3 = CryptographyHelper.GetRandomBytes(length3);
|
||||
|
||||
// assert
|
||||
Assert.AreEqual(length1, bytes1.Length);
|
||||
Assert.AreEqual(length2, bytes2.Length);
|
||||
Assert.AreEqual(length3, bytes3.Length);
|
||||
Assert.HasCount(length1, bytes1);
|
||||
Assert.HasCount(length2, bytes2);
|
||||
Assert.HasCount(length3, bytes3);
|
||||
|
||||
Assert.IsTrue(bytes1.Length == bytes2.Length);
|
||||
Assert.HasCount(bytes2.Length, bytes1);
|
||||
CollectionAssert.AreNotEqual(bytes1, bytes2);
|
||||
}
|
||||
|
||||
@@ -394,8 +394,8 @@ namespace UnitTests.Common.Utilities
|
||||
Assert.AreEqual(length2, str2.Length);
|
||||
Assert.AreEqual(length3, str3.Length);
|
||||
|
||||
Assert.IsTrue(str1.Length == str2.Length);
|
||||
Assert.IsFalse(str1 == str2);
|
||||
Assert.HasCount(str2.Length, str2);
|
||||
Assert.AreNotEqual(str2, str1);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
@@ -412,7 +412,7 @@ namespace UnitTests.Common.Utilities
|
||||
// assert
|
||||
Assert.AreEqual(length, str1.Length);
|
||||
Assert.AreEqual(length, str2.Length);
|
||||
Assert.IsFalse(str1 == str2);
|
||||
Assert.AreNotEqual(str2, str1);
|
||||
Assert.IsFalse(RandomStringWithPoolRegex().IsMatch(str1));
|
||||
Assert.IsFalse(RandomStringWithPoolRegex().IsMatch(str2));
|
||||
}
|
||||
@@ -532,7 +532,7 @@ namespace UnitTests.Common.Utilities
|
||||
Assert.IsFalse(fileExistsBefore);
|
||||
Assert.IsNotNull(helper);
|
||||
Assert.IsTrue(fileExistsAfter);
|
||||
Assert.IsTrue(!string.IsNullOrWhiteSpace(content));
|
||||
Assert.IsFalse(string.IsNullOrWhiteSpace(content));
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
|
||||
Reference in New Issue
Block a user