mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
5268f2781e
* Start switch to System.Text.Json * Work on switching to System.Text.Json * Main work on STJ refactor * Fix build errors * Run formatting * Delete unused file * Use legacy for two factor providers * Run formatter * Add TokenProviderTests * Run formatting * Fix merge issues * Switch to use JsonSerializer * Address PR feedback * Fix formatting * Ran formatter * Switch to async * Ensure Enums are serialized as strings * Fix formatting * Enqueue single items as arrays * Remove CreateAsync method on AzureQueueService
19 lines
465 B
C#
19 lines
465 B
C#
using System.Text.Json;
|
|
using Bit.Core.Entities;
|
|
using Bit.Core.Test.AutoFixture.CipherFixtures;
|
|
using Xunit;
|
|
|
|
namespace Bit.Core.Test.Models
|
|
{
|
|
public class CipherTests
|
|
{
|
|
[Theory]
|
|
[InlineUserCipherAutoData]
|
|
[InlineOrganizationCipherAutoData]
|
|
public void Clone_CreatesExactCopy(Cipher cipher)
|
|
{
|
|
Assert.Equal(JsonSerializer.Serialize(cipher), JsonSerializer.Serialize(cipher.Clone()));
|
|
}
|
|
}
|
|
}
|