Exemple #1
0
        IEnumerable <string> FormatMethodParams(MethodDoc methodDoc)
        {
            foreach (var param in methodDoc.Params)
            {
                var header      = _renderer.RenderText(param.Name, bold: true);
                var type        = _renderer.RenderText("Type:", italic: true) + " " + _renderer.RenderText(param.TypeName);
                var description = _renderer.RenderText("Description:", italic: true) + " " + _renderer.Sanitize(param.Description);

                yield return
                    (_renderer.RenderListItem(header, false, 1) +
                     _renderer.RenderListItem(type, false, 2) +
                     _renderer.RenderListItem(description, false, 2));
            }
        }
        public void RenderEmptyListItemTest()
        {
            var actualText = _gitHubRenderer.RenderListItem(String.Empty);

            Assert.AreEqual(String.Empty, actualText);
        }