mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-15 22:10:30 +00:00
chore(deps): update dependency mstest to 3.10.0 (#3458)
* 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 <JustArchi@JustArchi.net>
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="9.0.7" />
|
||||
<PackageVersion Include="Microsoft.CodeAnalysis.ResxSourceGenerator" Version="5.0.0-1.25277.114" />
|
||||
<PackageVersion Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.13.0" />
|
||||
<PackageVersion Include="MSTest" Version="3.9.3" />
|
||||
<PackageVersion Include="MSTest" Version="3.10.0" />
|
||||
<PackageVersion Include="Nito.AsyncEx.Coordination" Version="5.1.2" />
|
||||
<PackageVersion Include="NLog.Web.AspNetCore" Version="6.0.2" />
|
||||
<PackageVersion Include="OpenTelemetry.Exporter.Prometheus.AspNetCore" Version="1.12.0-beta.1" />
|
||||
|
||||
Reference in New Issue
Block a user