Exemplo n.º 1
0
        public void XmlVsParser_Should_ReturnValidResult()
        {
            var list = XmlVsParserObj.GetComments(PathToXmlDocumentation);

            list.Should().NotBeNull();
            list.Length.Should().BePositive();
            foreach (var comment in list)
            {
                comment.Remarks.Should().NotBeNull();
                comment.Returns.Should().NotBeNull();
                comment.Summary.Should().NotBeNull();
            }
        }
Exemplo n.º 2
0
 public void XmlVsParser_WhenNullablePath_Should_ReturnException()
 {
     Assert.Throws(typeof(ArgumentNullException),
                   () => XmlVsParserObj.GetComments(null));
 }