1. 21 5月, 2015 2 次提交
    • T
      Remove use of StringComparer.OrdinalIgnoreCase · 6935c155
      Tom Meschter 提交于
      These unit tests will now assert that casing is unchanged by
      `FilePathUtilities.GetRelativePath(...)`.
      6935c155
    • T
      Generate relative paths correctly · a4ad4aef
      Tom Meschter 提交于
      The `FilePathUtilities.GetRelativePath(...)` method is used in various
      places in the Workspaces and VS layers to generate a relative path from
      a starting directory to a target file or directory. However, it has a
      bug where it will generate an incorrect path if you need to go up more
      than one level from the starting directory to get to the target.
      
      For example, if the starting directory is `C:\Alpha\Beta\Gamma` and the
      target is `C:\Alpha\SomeFile.txt`, the correct relative path would be
      `..\..\SomeFile.txt`. Instead, we get `..\..\..\SomeFile.txt` (note the
      extra `..`).
      
      This commit fixes the issue and adds unit tests for this method.
      a4ad4aef
  2. 20 5月, 2015 21 次提交
  3. 19 5月, 2015 17 次提交