PathExtensions ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Extensions PathExtensions

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

public static class PathExtensions

The PathExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberCreateDirectoryIfNotExists
Public methodStatic memberGetAbsolutePath
Public methodStatic memberGetDeltaEngineInstalledDirectory
Public methodStatic memberGetDeltaEngineSolutionFilePath
Public methodStatic memberGetDotNetFrameworkPath
Reference: http://msdn.microsoft.com/en-us/library/y549e41e.aspx View code on GitHub
Public methodStatic memberGetExecutableDirectory
Public methodStatic memberGetFallbackEngineSourceCodeDirectory
Public methodStatic memberIsDeltaEnginePathEnvironmentVariableAvailable
Top
Fields

  NameDescription
Public fieldStatic memberDefaultCodePath
Public fieldStatic memberEnginePathEnvironmentVariableName
Top
Remarks

Tests: DeltaEngine.Tests.Extensions.PathExtensionsTests
Examples

7 unit tests call DeltaEngine.Extensions.PathExtensions
[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