Namespace: DeltaEngine.Extensions
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Tests.Extensions.PathExtensionsTests
1 unit tests call DeltaEngine.Extensions.PathExtensions.GetAbsolutePath(System.String)
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- directoryOrFilePath
- Type: System String
Return Value
Type: StringRemarks
Examples
[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