public void CombinePathWithVerboseError_IllegalCharacters_MessageContainsBadPath() { const string badPath = @"C:\bad:>dir"; var exception = Assert.Throws <ArgumentException>(() => MsBuildUtility.CombinePathWithVerboseError(badPath, "file.txt")); Assert.Contains(badPath, exception.Message); }
public void CombinePathWithVerboseError_CombinesPaths() { var paths = new[] { "C:\\", "directory/", "\\folder", "file.txt" }; Assert.Equal(Path.Combine(paths), MsBuildUtility.CombinePathWithVerboseError(paths)); }