Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Aug 7, 2024
1 parent 2c9d015 commit f28d783
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ArchiSteamFarm.Tests/ArchiCryptoHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,15 @@ internal async Task CanEncryptDecrypt(ECryptoMethod cryptoMethod) {
Assert.IsNotNull(decrypted);
Assert.AreEqual(TestPassword, decrypted);
}

[TestMethod]
internal async Task CanEncryptDecryptProtectedDataForCurrentUser() {
if (!OperatingSystem.IsWindows()) {
// Not supported on other platforms than Windows
return;
}

await CanEncryptDecrypt(ECryptoMethod.ProtectedDataForCurrentUser).ConfigureAwait(false);
}
}
#pragma warning restore CA1812 // False positive, the class is used during MSTest

0 comments on commit f28d783

Please sign in to comment.