Inheritance Hierarchy
DeltaEngine.Extensions PathExtensions
Namespace: DeltaEngine.Extensions
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The PathExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
CreateDirectoryIfNotExists | ||
GetAbsolutePath | ||
GetDeltaEngineInstalledDirectory | ||
GetDeltaEngineSolutionFilePath | ||
GetDotNetFrameworkPath |
Reference: http://msdn.microsoft.com/en-us/library/y549e41e.aspx
View code on GitHub | |
GetExecutableDirectory | ||
GetFallbackEngineSourceCodeDirectory | ||
IsDeltaEnginePathEnvironmentVariableAvailable |
Fields
Name | Description | |
---|---|---|
DefaultCodePath | ||
EnginePathEnvironmentVariableName |
Remarks
Examples
[Test] public void InstallerSetsDeltaEnginePathEnvironmentVariable() { MakeSureEnvironmentVariableIsSet(); Assert.IsTrue(PathExtensions.IsDeltaEnginePathEnvironmentVariableAvailable()); }
[Test] public void WithoutInstallerDeltaEnginePathEnvironmentVariableIsNotSet() { DeleteEnvironmentVariableIfSet(); Assert.IsFalse(PathExtensions.IsDeltaEnginePathEnvironmentVariableAvailable()); }
[Test, Ignore] public void DeltaEnginePathEnvironmentVariableMustBeAnExistingDirectory() { MakeSureEnvironmentVariableIsSet(); Assert.IsTrue(Directory.Exists(PathExtensions.GetDeltaEngineInstalledDirectory()), PathExtensions.GetDeltaEngineInstalledDirectory()); }
See Also