mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
0e1ab99e25
* Update bitwarden_license projects * Added tests to verify resource names * Remove unneeded assembly attributes * Standardized namespace * Remove .GetTypeInfo()
19 lines
474 B
C#
19 lines
474 B
C#
using Bit.Core.Models.Table;
|
|
using Bit.Core.Test.AutoFixture.CipherFixtures;
|
|
using Newtonsoft.Json;
|
|
using Xunit;
|
|
|
|
namespace Bit.Core.Test.Models
|
|
{
|
|
public class CipherTests
|
|
{
|
|
[Theory]
|
|
[InlineUserCipherAutoData]
|
|
[InlineOrganizationCipherAutoData]
|
|
public void Clone_CreatesExactCopy(Cipher cipher)
|
|
{
|
|
Assert.Equal(JsonConvert.SerializeObject(cipher), JsonConvert.SerializeObject(cipher.Clone()));
|
|
}
|
|
}
|
|
}
|