From 5659818313cdfc5a882bfd0dcd5cc3ccfaf24c58 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 30 Jul 2025 03:14:13 +0200 Subject: [PATCH] chore(deps): update dependency mstest to 3.10.0 (#3458) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency mstest to 3.10.0 * Adapt to new analyzers --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Ɓukasz Domeradzki --- ArchiSteamFarm.Tests/ArchiCryptoHelper.cs | 2 +- ArchiSteamFarm.Tests/MobileAuthenticator.cs | 4 ++-- ArchiSteamFarm.Tests/SteamChatMessage.cs | 10 +++++----- Directory.Packages.props | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ArchiSteamFarm.Tests/ArchiCryptoHelper.cs b/ArchiSteamFarm.Tests/ArchiCryptoHelper.cs index 493e40502..ce77a368d 100644 --- a/ArchiSteamFarm.Tests/ArchiCryptoHelper.cs +++ b/ArchiSteamFarm.Tests/ArchiCryptoHelper.cs @@ -36,7 +36,7 @@ internal sealed class ArchiCryptoHelper { [DataRow(ECryptoMethod.PlainText)] [DataRow(ECryptoMethod.AES)] - [DataTestMethod] + [TestMethod] internal async Task CanEncryptDecrypt(ECryptoMethod cryptoMethod) { if (!Enum.IsDefined(cryptoMethod)) { throw new InvalidEnumArgumentException(nameof(cryptoMethod), (int) cryptoMethod, typeof(ECryptoMethod)); diff --git a/ArchiSteamFarm.Tests/MobileAuthenticator.cs b/ArchiSteamFarm.Tests/MobileAuthenticator.cs index 29cf9277d..65b5b9b6a 100644 --- a/ArchiSteamFarm.Tests/MobileAuthenticator.cs +++ b/ArchiSteamFarm.Tests/MobileAuthenticator.cs @@ -36,7 +36,7 @@ internal sealed class MobileAuthenticator { [DataRow("qrg+wW8/u/TDt2i/+FQuPhuVrmY=", (ulong) 1337, "mYbCKs8ZvsVN2odCMxpvidrIu1c=", "conf")] [DataRow("qrg+wW8/u/TDt2i/+FQuPhuVrmY=", (ulong) 1723332288, "hiEx+JBqJqFJnSSL+dEthPHOmsc=")] [DataRow("qrg+wW8/u/TDt2i/+FQuPhuVrmY=", (ulong) 1723332288, "hpZUxyNgwBvtKPROvedjuvVPQiE=", "conf")] - [DataTestMethod] + [TestMethod] internal void GenerateConfirmationHash(string identitySecret, ulong time, string expectedCode, string? tag = null) { ArgumentException.ThrowIfNullOrEmpty(identitySecret); ArgumentOutOfRangeException.ThrowIfZero(time); @@ -58,7 +58,7 @@ internal sealed class MobileAuthenticator { [DataRow("KDHC3rsY8+CmiswnXJcE5e5dRfd=", (ulong) 1337, "47J4D")] [DataRow("KDHC3rsY8+CmiswnXJcE5e5dRfd=", (ulong) 1723332288, "JQ3HQ")] - [DataTestMethod] + [TestMethod] internal void GenerateTokenForTime(string sharedSecret, ulong time, string expectedCode) { ArgumentException.ThrowIfNullOrEmpty(sharedSecret); ArgumentOutOfRangeException.ThrowIfZero(time); diff --git a/ArchiSteamFarm.Tests/SteamChatMessage.cs b/ArchiSteamFarm.Tests/SteamChatMessage.cs index 798af1cd9..8e91bb99c 100644 --- a/ArchiSteamFarm.Tests/SteamChatMessage.cs +++ b/ArchiSteamFarm.Tests/SteamChatMessage.cs @@ -66,7 +66,7 @@ internal sealed class SteamChatMessage { [DataRow(false)] [DataRow(true)] - [DataTestMethod] + [TestMethod] internal async Task DoesntSplitInTheMiddleOfMultiByteChar(bool isAccountLimited) { int maxMessageBytes = isAccountLimited ? MaxMessageBytesForLimitedAccounts : MaxMessageBytesForUnlimitedAccounts; int longLineLength = maxMessageBytes - ReservedContinuationMessageBytes; @@ -97,7 +97,7 @@ internal sealed class SteamChatMessage { [DataRow(false)] [DataRow(true)] - [DataTestMethod] + [TestMethod] internal async Task DoesntSplitOnBackslashNotUsedForEscaping(bool isAccountLimited) { int maxMessageBytes = isAccountLimited ? MaxMessageBytesForLimitedAccounts : MaxMessageBytesForUnlimitedAccounts; int longLineLength = maxMessageBytes - ReservedContinuationMessageBytes; @@ -113,7 +113,7 @@ internal sealed class SteamChatMessage { [DataRow(false)] [DataRow(true)] - [DataTestMethod] + [TestMethod] internal async Task DoesntSplitOnEscapeCharacter(bool isAccountLimited) { int maxMessageBytes = isAccountLimited ? MaxMessageBytesForLimitedAccounts : MaxMessageBytesForUnlimitedAccounts; int longLineLength = maxMessageBytes - ReservedContinuationMessageBytes; @@ -178,7 +178,7 @@ internal sealed class SteamChatMessage { [DataRow(false)] [DataRow(true)] - [DataTestMethod] + [TestMethod] internal async Task ProperlySplitsLongSingleLine(bool isAccountLimited) { int maxMessageBytes = isAccountLimited ? MaxMessageBytesForLimitedAccounts : MaxMessageBytesForUnlimitedAccounts; int longLineLength = maxMessageBytes - ReservedContinuationMessageBytes; @@ -285,7 +285,7 @@ internal sealed class SteamChatMessage { [DataRow(false)] [DataRow(true)] - [DataTestMethod] + [TestMethod] internal async Task SplitsOnNewlinesWithParagraphCharacter(bool isAccountLimited) { int maxMessageBytes = isAccountLimited ? MaxMessageBytesForLimitedAccounts : MaxMessageBytesForUnlimitedAccounts; diff --git a/Directory.Packages.props b/Directory.Packages.props index 756215ed4..32384a406 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -8,7 +8,7 @@ - +