Exemplo n.º 1
0
 public object Visit(SanityCheckingCellData n)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 2
0
        public object Visit(SanityCheckingCellData n)
        {
            if (this.root == null) return false;

            var locationElement = root.Element(XName.Get("Location"));
            n.Location = (locationElement != null) ? locationElement.Value : String.Empty;

            var contentElement = root.Element(XName.Get("Content"));
            n.Content = (contentElement != null) ? contentElement.Value : String.Empty;

            var cellTypeElement = root.Element(XName.Get("CellType"));
            if (cellTypeElement != null)
            {
                n.CellType = (TestInputType)Enum.Parse(typeof(TestInputType), cellTypeElement.Value.ToUpper());
            }

            return true;
        }