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 @@ - +