public void MarkDownReactor_Build_WhenSingleFileAndSettings_Should_ReturnFiles() { OptionsObj.IsMiltiFiles = true; _reactor = new MarkDownReactor(Forge.GetOutputWriter(), Forge.GetXmlContentReader()); _reactor.Load(DllPathObj, XmlPathObj); _reactor.Build(OptionsObj); var files = Directory.EnumerateFiles(OutPutPathObj).ToList(); files.Should().NotBeNull(); files.Count(s => s.Contains("Home.md")).Should().Be(1); }
public void MarkDownReactor_Build_WhenMiltiFiles_Should_ReturnFiles() { OptionsObj.IsMiltiFiles = true; _reactor = new MarkDownReactor(Forge.GetOutputWriter(), Forge.GetXmlContentReader()); _reactor.Load(DllPathObj, XmlPathObj); _reactor.Build(OptionsObj); var files = Directory.EnumerateFiles(OutPutPathObj).ToList(); files.Should().NotBeNull(); if (OptionsObj.IsMiltiFiles) { files.Count(s => s.Contains("ITestInterface.md") || s.Contains("TestEnum.md") || s.Contains("TestClass.md")) .Should() .Be(3); } }
public void MarkDownReactor_Build_Should_ReturnValidResult() { _reactor = new MarkDownReactor(Forge.GetOutputWriter(), Forge.GetXmlContentReader()); _reactor.Load(DllPathObj, XmlPathObj); _reactor.Build(OptionsObj); }