Пример #1
0
        public void DeserializeEmptyDocumentField()
        {
            var serializer = new DocumentFieldSerializer();

            var field = (DocumentField)serializer.Deserialize(null);

            Assert.False(field.HasValue);
        }
Пример #2
0
        public void DeserializeDocumentField()
        {
            var serializer = new DocumentFieldSerializer();
            var id         = Guid.NewGuid();

            var field = (DocumentField)serializer.Deserialize(id.ToString());

            Assert.Equal(id, field.Id.Value);
        }