Browse Source

Use path combine.

newNRvisualizers
Mike Krüger 14 years ago
parent
commit
8e78ca4d3c
  1. 2
      ICSharpCode.NRefactory.Tests/CSharp/Parser/ParseSelfTests.cs

2
ICSharpCode.NRefactory.Tests/CSharp/Parser/ParseSelfTests.cs

@ -37,7 +37,7 @@ namespace ICSharpCode.NRefactory.CSharp.Parser
[TestFixtureSetUp] [TestFixtureSetUp]
public void SetUp() public void SetUp()
{ {
string path = Path.GetFullPath (@".." + Path.DirectorySeparatorChar + ".." + Path.DirectorySeparatorChar + ".."); string path = Path.GetFullPath (Path.Combine ("..", "..", ".."));
if (!File.Exists(Path.Combine(path, "NRefactory.sln"))) if (!File.Exists(Path.Combine(path, "NRefactory.sln")))
throw new InvalidOperationException("Test cannot find the NRefactory source code in " + path); throw new InvalidOperationException("Test cannot find the NRefactory source code in " + path);
fileNames = Directory.GetFiles(path, "*.cs", SearchOption.AllDirectories); fileNames = Directory.GetFiles(path, "*.cs", SearchOption.AllDirectories);

Loading…
Cancel
Save