示例#1
0
        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);
        }
示例#2
0
        public void CombinePathWithVerboseError_CombinesPaths()
        {
            var paths = new[] { "C:\\", "directory/", "\\folder", "file.txt" };

            Assert.Equal(Path.Combine(paths), MsBuildUtility.CombinePathWithVerboseError(paths));
        }