public void DeepCopy_Null() { object value = null; var type = new JsonColumnType <ExampleJsonModel>(); var result = type.DeepCopy(value); Assert.Null(result); }
public void DeepCopy_Success() { var id = Guid.NewGuid(); var value = (object)(new ExampleJsonModel(id, new List <string> { "1", "2" })); var type = new JsonColumnType <ExampleJsonModel>(); var result = type.DeepCopy(value) as ExampleJsonModel; Assert.NotNull(result); Assert.Equal(id, result.Identifier); }