public void Deserialise_Null() { var type = new JsonColumnType <ExampleJsonModel>(); var result = type.Deserialise(null); Assert.NotNull(result); }
public void Deserialise_EmptyString() { var type = new JsonColumnType <ExampleJsonModel>(); var result = type.Deserialise(""); Assert.NotNull(result); }
public void Deserialise_Success() { var id = new Guid("7D1E8984-15FD-4FCD-85FF-DF248C1E056B"); var value = "{\"identifier\":\"" + id + "\",\"list\":[\"1\",\"2\"]}"; var type = new JsonColumnType <ExampleJsonModel>(); var result = type.Deserialise(value); Assert.NotNull(result); Assert.Equal(id, result.Identifier); }