Skip to content

Commit

Permalink
More Linux build / test fixes related to pathing and path-case sensit…
Browse files Browse the repository at this point in the history
…ivity; all Linux build unit tests should be passing now.
  • Loading branch information
bchavez committed Jan 14, 2024
1 parent 95e55db commit 73905a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Bogus.Tests/README_Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class Record
public void get_available_methods()
{
var (_, buildDir) = GetWorkingFolders();
var bogusXml = Path.Combine(buildDir, "Bogus.XML");
var bogusXml = Path.Combine(buildDir, "Bogus.xml");
var xml = XDocument.Load(bogusXml);

var nav = xml.CreateNavigator();
Expand Down Expand Up @@ -118,7 +118,7 @@ public void get_available_methods()
public void get_randomizer_methods()
{
var (_, buildDir) = GetWorkingFolders();
var bogusXml = Path.Combine(buildDir, "Bogus.XML");
var bogusXml = Path.Combine(buildDir, "Bogus.xml");
var xml = XDocument.Load(bogusXml);

var nav = xml.CreateNavigator();
Expand Down Expand Up @@ -244,7 +244,7 @@ public void get_all_locales()
//make sure # of embedded locales matches the number of imported on disk.
//var workingDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
var (projectDir, _) = GetWorkingFolders();
var dataDir = projectDir.PathCombine(@"..\Bogus\data");
var dataDir = projectDir.PathCombine(@"../Bogus/data");
count.Should().Be(Directory.GetFiles(dataDir, "*.locale.json").Length);

output.WriteLine(string.Join("\n", locales));
Expand All @@ -254,7 +254,7 @@ public void get_all_locales()
public void get_extension_namespaces()
{
var (_, buildDir) = GetWorkingFolders();
var bogusXml = Path.Combine(buildDir, "Bogus.XML");
var bogusXml = Path.Combine(buildDir, "Bogus.xml");
var x = XElement.Load(bogusXml);
var json = JsonConvert.DeserializeObject<JObject>(JsonConvert.SerializeXNode(x));

Expand Down

0 comments on commit 73905a9

Please sign in to comment.