Skip to content

Commit

Permalink
Fudge path
Browse files Browse the repository at this point in the history
  • Loading branch information
baynezy committed Jan 2, 2024
1 parent 3f15e99 commit ab23241
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/Console.UnitTests/BaseTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public abstract class BaseTest

private static string SetTestPath()
{
const string fallback = @"..\..\..\..\";
const string fallback = @"..\..\..\";

return Environment.GetEnvironmentVariable("Test.Path") ?? fallback;
}
Expand Down
8 changes: 4 additions & 4 deletions test/Console.UnitTests/Factories/ConfigFactoryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class ConfigFactoryTest : BaseTest
public void Create_WhenConfigFileHasXmlExtension_ThenReturnXmlConfig()
{
// arrange
var files = new List<string> { TestPath + "SiteWarmer.Core.UnitTests/Data/urls.xml" };
var files = new List<string> { TestPath + "../SiteWarmer.Core.UnitTests/Data/urls.xml" };
var config = ConfigFactory.Create(files);

// assert
Expand All @@ -17,7 +17,7 @@ public void Create_WhenConfigFileHasXmlExtension_ThenReturnXmlConfig()
public void Create_WhenConfigFileDoesNotHaveAnXmlExtension_ThenReturnFileConfig()
{
// arrange
var files = new List<string> { TestPath + "SiteWarmer.Core.UnitTests/Data/urls.txt" };
var files = new List<string> { TestPath + "../SiteWarmer.Core.UnitTests/Data/urls.txt" };
var config = ConfigFactory.Create(files);

// assert
Expand All @@ -31,8 +31,8 @@ public void Create_WhenThereAreMultipleFiles_ThenCreateConfigCollection()
const int expectedCount = 2;
var files = new List<string>
{
TestPath + "SiteWarmer.Core.UnitTests/Data/urls.txt",
TestPath + "SiteWarmer.Core.UnitTests/Data/urls.xml"
TestPath + "../SiteWarmer.Core.UnitTests/Data/urls.txt",
TestPath + "../SiteWarmer.Core.UnitTests/Data/urls.xml"
};

// act
Expand Down

0 comments on commit ab23241

Please sign in to comment.