Youssef1313 / markdown-links-verifier

A GitHub Action to validate links in Markdown files
MIT License
4 stars 1 forks source link

Tests doesn't accurately "simulate" the actual state #93

Open Youssef1313 opened 3 years ago

Youssef1313 commented 3 years ago

The implementation uses Directory.GetCurrentDirectory() to get the path of the root for links starting in /. When tests run, the directory doesn't represent the root directory ("WorkspaceTests"). See:

https://github.com/MSDocsBuild/build-verifier/blob/main/tests/MarkdownLinksVerifier/LinkValidatorTests/LocalLinkValidatorTests.cs#L356