public async Task From_subpath_of_the_root_path() { /* Given */ var collector = new SectionCollector(); await _catalog.Add(_aggregator.Aggregate(CancellationToken.None)); /* When */ await collector.Collect(_catalog); /* Then */ Assert.Single(collector.Sections, section => section.Id == "structure"); }
public async Task Build_site() { /* Given */ var collector = new SectionCollector(); await _catalog.Add(_aggregator.Aggregate(CancellationToken.None)); await collector.Collect(_catalog); var sut = new SiteBuilder(_site); /* When */ var site = sut.Add(collector.Sections) .Build(); /* Then */ Assert.NotEmpty(site.Versions); }