Beispiel #1
0
        public void WrongInputPageField()
        {
            var serializer = new PageFieldSerializer();

            Assert.Throws <ArgumentException>(() => serializer.Serialize(new DateField
            {
                Value = DateTime.Now
            }));
        }
Beispiel #2
0
        public void SerializePageField()
        {
            var serializer = new PageFieldSerializer();
            var pageId     = Guid.NewGuid();

            var str = serializer.Serialize(new PageField
            {
                Id = pageId
            });

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