1
0
mirror of https://github.com/bitwarden/mobile synced 2026-02-28 10:23:40 +00:00

PM-3350 PM-3349 Updated Unit Test projects to NET 8.0 and fixed it to work with Core project reference. Also fixed a test that was breaking due to CIpherKey creation being wrong. Added "UT" as a constant to add when building/running Core.Test project so we have something on the context that tells us that is for a UT. With this I had to remove FFImageLoading on UT context because it doesn't support NET 8.0

This commit is contained in:
Federico Maccaroni
2024-01-15 17:18:51 -03:00
parent 1949a450fd
commit 6d625f285b
12 changed files with 142 additions and 15 deletions

View File

@@ -44,7 +44,7 @@ namespace Bit.Core.Test.AutoFixture
fixture.Customize<CipherView>(composer => composer
.Without(c => c.OrganizationId)
.Without(c => c.Attachments)
.With(c => c.Key, new SymmetricCryptoKey(getRandomBytes(32), Enums.EncryptionType.AesCbc128_HmacSha256_B64)));
.With(c => c.Key, new CipherKey(getRandomBytes(32), Enums.EncryptionType.AesCbc128_HmacSha256_B64)));
}
}