public void MdFluentBuilder_Build_Should_ReturnValidContentForProperties()
        {
            _mdBuilder = new MarkDownBuilder(MarkDownGeneratorObj, XmlVsParserObj);
            _mdBuilder.Load(PathToDll, PathToXmlDocumentation);
            var type = _mdBuilder.Types.First(s => s.MemberType == MemberType.Type && s.Properties.Count > 0);

            _builder = new MdFluentBuilder(TestVariables.TemplateProperties, "home.md", type);
            var result = _builder.Build();

            CheckResult(result, "prop");
        }
        public void MdFluentBuilder_Build_Should_ReturnException(string template, string fileName, bool isType)
        {
            MarkDownType type = null;

            if (isType)
            {
                type = new MarkDownType(MemberType.Property, null, false);
            }
            Assert.Throws(typeof(ArgumentNullException),
                          () => _builder = new MdFluentBuilder(template, fileName, type));
        }
        public void MdFluentBuilder_Build_Should_ReturnValidContentForParent()
        {
            _mdBuilder = new MarkDownBuilder(MarkDownGeneratorObj, XmlVsParserObj);
            _mdBuilder.Load(PathToDll, PathToXmlDocumentation);
            var type = _mdBuilder.Types.First(s => s.MemberType == MemberType.Type);

            _builder = new MdFluentBuilder(TestVariables.TemplateHeader, "home.md", type);
            var result = _builder.Build();

            result.Should().NotBeNull();
            result.Should().BeOfType <MdStringEditor>();
            result.ToString().Should().NotBeNullOrEmpty();
            result.ToString().Should().NotContain("@prefix");
            result.ToString().Should().NotContain("@fullName");
            result.ToString().Should().NotContain("@summary");
        }
        public void MdFluentBuilder_Build_Should_ReturnValidFullContent()
        {
            _mdBuilder = new MarkDownBuilder(MarkDownGeneratorObj, XmlVsParserObj);
            _mdBuilder.Load(PathToDll, PathToXmlDocumentation);

            var list = new List <IMdStringEditor>();

            foreach (var type in _mdBuilder.Types)
            {
                _builder = new MdFluentBuilder(TestVariables.TemplateFull, "home.md", type);
                var result = _builder.Build();
                result.Should().NotBeNull();
                result.Should().BeOfType <MdStringEditor>();
                result.ToString().Should().NotBeNullOrEmpty();
                result.ToString().Should().NotContain("@");
                list.Add(result);
            }
            list.Count.Should().Be(_mdBuilder.Types.Count);
        }
 /// <inheritdoc />
 public override void SetUpConfig()
 {
     _builder = null;
 }