Beispiel #1
0
        public void DeserializeEmptyMediaField()
        {
            var serializer = new MediaFieldSerializer();

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

            Assert.False(field.HasValue);
        }
Beispiel #2
0
        public void DeserializeMediaField()
        {
            var serializer = new MediaFieldSerializer();
            var id         = Guid.NewGuid();

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

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