PsGet.Abstractions.PhysicalFileSystem.GetFullPath C# (CSharp) 메소드

GetFullPath() 공개 메소드

public GetFullPath ( string fileName ) : string
fileName string
리턴 string
        public string GetFullPath(string fileName)
        {
            return Path.Combine(_root, fileName);
        }

Usage Example

예제 #1
0
        public void GetFilePathReturnsCombinedPathEvenIfFileDoesNotExist()
        {
            // Arrange
            PhysicalFileSystem fs = new PhysicalFileSystem(testRoot);

            // Act
            string actual = fs.GetFullPath(@"tests\testGetFullPath.txt");

            // Assert
            Assert.Equal(Path.Combine(testRoot, @"tests\testGetFullPath.txt"), actual);
        }