Esempio n. 1
0
        public void DotNetCommentCell_FromXml_Empty()
        {
            //arrange
            XElement element = XElement.Parse("<term/>", LoadOptions.PreserveWhitespace);
            //act
            DotNetCommentCell result = DotNetCommentCell.FromVisualStudioXml(element);

            //assert
            Assert.AreEqual(null, result.Text);
        }
Esempio n. 2
0
        public void DotNetCommentCell_FromXml_Full()
        {
            //arrange
            string   text    = "Lorem ipsum dolor sit amet";
            XElement element = XElement.Parse("<term>" + text + "</term>", LoadOptions.PreserveWhitespace);
            //act
            DotNetCommentCell result = DotNetCommentCell.FromVisualStudioXml(element);

            //assert
            Assert.AreEqual(text, result.Text);
        }