PathExtensions GetAbsolutePath Method Delta Engine Documentation

Namespace: DeltaEngine.Extensions
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public static string GetAbsolutePath(
	string directoryOrFilePath
)

Return Value

Type: String
Remarks

Tests: DeltaEngine.Tests.Extensions.PathExtensionsTests
Examples

1 unit tests call DeltaEngine.Extensions.PathExtensions.GetAbsolutePath(System.String)
[Test]
public void GetAbsolutePath()
{
    Assert.AreEqual(Environment.CurrentDirectory, PathExtensions.GetAbsolutePath(null));
    Assert.AreEqual(Environment.CurrentDirectory, PathExtensions.GetAbsolutePath(""));
    Assert.AreEqual(Path.Combine(Environment.CurrentDirectory, "File.ext"),
        PathExtensions.GetAbsolutePath("File.ext"));
}
See Also