コード例 #1
0
ファイル: PathExtensionsTest.cs プロジェクト: ywscr/NBi
        public void Combine_NotRootedPathFileName_Valid(string path, string filename)
        {
            var fullPath = PathExtensions.CombineOrRoot(@"C:\Temp", path, filename);

            Assert.That(fullPath, Is.EqualTo(@"C:\Temp\Bar\foo.txt"));
        }
コード例 #2
0
ファイル: PathTransformation.cs プロジェクト: ywscr/NBi
 protected override object EvaluateString(string value)
 => Path.GetPathRoot(PathExtensions.CombineOrRoot(BasePath, value));