Skip to content

Commit

Permalink
unit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jefffhaynes committed Aug 23, 2023
1 parent 2da1afd commit 8442245
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BinarySerializer.Test/Value/PngTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ public void DeserializePng()
{
byte[] data;

using (var stream = new FileStream("Value\\image.png", FileMode.Open, FileAccess.Read))
var path = Path.Combine("Value", "image.png");
using (var stream = new FileStream(path, FileMode.Open, FileAccess.Read))
{
data = new byte[stream.Length];
var read = stream.Read(data, 0, data.Length);
Expand Down

0 comments on commit 8442245

Please sign in to comment.