From f28d7832728c0270bdaea200af01a8b9cdb102ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Domeradzki?= Date: Wed, 7 Aug 2024 03:15:22 +0200 Subject: [PATCH] Misc --- ArchiSteamFarm.Tests/ArchiCryptoHelper.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ArchiSteamFarm.Tests/ArchiCryptoHelper.cs b/ArchiSteamFarm.Tests/ArchiCryptoHelper.cs index 07263d878..2685e47c2 100644 --- a/ArchiSteamFarm.Tests/ArchiCryptoHelper.cs +++ b/ArchiSteamFarm.Tests/ArchiCryptoHelper.cs @@ -51,5 +51,15 @@ internal sealed class ArchiCryptoHelper { 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