mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
18 lines
423 B
C#
18 lines
423 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()));
|
|
}
|
|
}
|