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); }
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); }