Example #1
0
        public void LinkPathExists(Link link)
        {
            var relativeTo = Path.GetDirectoryName(link.Location.Source) ?? "";
            var resolved   = new NormalisedPath(Path.Combine(relativeTo, link.Path));

            Assert.That(new EmbeddedMarkdownSource().GetAll().Select(m => m.FilePath), Has.One.EqualTo(resolved));
        }
Example #2
0
 public Link(string caption, string path, ConfigurationLocation location)
 {
     Caption  = caption;
     Path     = new NormalisedPath(path);
     Location = location;
 }