Example #1
0
        public void WrongInputToVideoField()
        {
            var serializer = new VideoFieldSerializer();

            Assert.Throws <ArgumentException>(() => serializer.Serialize(new StringField
            {
                Value = "Exception"
            }));
        }
Example #2
0
        public void SerializeVideoField()
        {
            var serializer = new VideoFieldSerializer();
            var id         = Guid.NewGuid();

            var str = serializer.Serialize(new VideoField
            {
                Id = id
            });

            Assert.Equal(id.ToString(), str);
        }