Browse Source

Use Path.DirectorySeparatorChar

pull/1635/head
Brian Popow 5 years ago
parent
commit
31c679998e
  1. 2
      tests/ImageSharp.Tests/Formats/GeneralFormatTests.cs
  2. 2
      tests/ImageSharp.Tests/TestUtilities/ImagingTestCaseUtility.cs

2
tests/ImageSharp.Tests/Formats/GeneralFormatTests.cs

@ -171,7 +171,7 @@ namespace SixLabors.ImageSharp.Tests.Formats
using (var image2 = Image.Load<Rgba32>(serialized))
{
image2.Save($"{path}/{file.FileName}");
image2.Save($"{path}{Path.DirectorySeparatorChar}{file.FileName}");
}
}
}

2
tests/ImageSharp.Tests/TestUtilities/ImagingTestCaseUtility.cs

@ -97,7 +97,7 @@ namespace SixLabors.ImageSharp.Tests
details = '_' + details;
}
return TestUtils.AsInvariantString($"{this.GetTestOutputDir()}/{this.TestName}{pixName}{fn}{details}{extension}");
return TestUtils.AsInvariantString($"{this.GetTestOutputDir()}{Path.DirectorySeparatorChar}{this.TestName}{pixName}{fn}{details}{extension}");
}
/// <summary>

Loading…
Cancel
Save