Skip to content

Commit

Permalink
Fixing issues in Automation due to long path problems
Browse files Browse the repository at this point in the history
  • Loading branch information
MichielOda committed Oct 24, 2023
1 parent 34040a0 commit 8c94a1f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Parsers.AutomationTests/AssemblyInitialize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static void AssemblyInit(TestContext context)
// This is needed because certain tools will look at all csproj files in the entire repository.

var baseDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
FileSystem.Instance.Directory.AllowWritesOnDirectory(baseDir);
//FileSystem.Instance.Directory.AllowWritesOnDirectory(baseDir);

foreach (var zipFile in Directory.GetFiles(baseDir, "*.zip", SearchOption.AllDirectories))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void AutomationScriptCompiler_Solution1_Load()
Assert.AreEqual(path, solution.SolutionPath);
Assert.AreEqual(Path.GetDirectoryName(path), solution.SolutionDirectory);

Assert.AreEqual(4, solution.Projects.Count());
Assert.AreEqual(3, solution.Projects.Count());
Assert.AreEqual(2, solution.Scripts.Count());

var script1 = solution.Scripts.FirstOrDefault(s => s.Script.Name == "Script_1").Script;
Expand Down Expand Up @@ -66,7 +66,7 @@ public void AutomationScriptCompiler_Solution2_Load()
Assert.AreEqual(path, solution.SolutionPath);
Assert.AreEqual(Path.GetDirectoryName(path), solution.SolutionDirectory);

Assert.AreEqual(4, solution.Projects.Count());
Assert.AreEqual(3, solution.Projects.Count());
Assert.AreEqual(2, solution.Scripts.Count());

var script1 = solution.Scripts.FirstOrDefault(s => s.Script.Name == "Script_1").Script;
Expand Down Expand Up @@ -101,7 +101,7 @@ public void AutomationScriptCompiler_Solution3_Load()
Assert.AreEqual(path, solution.SolutionPath);
Assert.AreEqual(Path.GetDirectoryName(path), solution.SolutionDirectory);

Assert.AreEqual(4, solution.Projects.Count());
Assert.AreEqual(3, solution.Projects.Count());
Assert.AreEqual(2, solution.Scripts.Count());

var script1 = solution.Scripts.FirstOrDefault(s => s.Script.Name == "Script_1").Script;
Expand Down Expand Up @@ -153,7 +153,7 @@ public void AutomationScriptCompiler_Solution5_Load()
Assert.AreEqual(path, solution.SolutionPath);
Assert.AreEqual(Path.GetDirectoryName(path), solution.SolutionDirectory);

Assert.AreEqual(2, solution.Projects.Count());
Assert.AreEqual(1, solution.Projects.Count());
Assert.AreEqual(1, solution.Scripts.Count());

var script1 = solution.Scripts.FirstOrDefault(s => s.Script.Name == "New").Script;
Expand Down
Binary file modified Parsers.AutomationTests/VisualStudio/TestFiles.zip
Binary file not shown.

0 comments on commit 8c94a1f

Please sign in to comment.