Skip to content

Commit

Permalink
Fix test error on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Computr1x committed Nov 29, 2023
1 parent 457124a commit 765ca69
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Tests/EffectTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ private static Container CreateTemplate()
template[0, index] = true;
});

var fontFamily = new FontCollection().Add(".\\Assets\\Fonts\\OpenSans.ttf");
var fontFamily = new FontCollection().Add(Path.GetFullPath(@"./Assets/Fonts/OpenSans.ttf"));
return new Container(containerSize)
.WithBackground(Color.White)
.WithChild(
Expand Down
6 changes: 3 additions & 3 deletions Tests/GeneratorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ private static Container CreateTemplate()
Size containerSize = new(512, 256);
Point center = new(256, 128);

var fontFamily = new FontCollection().Add(@".\Assets\Fonts\OpenSans.ttf");
var fontFamily = new FontCollection().Add(Path.GetFullPath(@"./Assets/Fonts/OpenSans.ttf"));

return new Container(containerSize)
.WithBackground(Color.Orange)
Expand Down Expand Up @@ -77,7 +77,7 @@ private static Container CreateSecondTemplate()
Size containerSize = new(512, 256);
Point center = new(0, 128);

var fontFamily = new FontCollection().Add(".\\Assets\\Fonts\\OpenSans.ttf");
var fontFamily = new FontCollection().Add(Path.GetFullPath(@"./Assets/Fonts/OpenSans.ttf"));

return new Container(containerSize)
.WithBackground(Color.Orange)
Expand Down Expand Up @@ -123,7 +123,7 @@ private static Container CreateThirdTemplate()
Size containerSize = new(512, 256);
Point center = new(256, 128);

var fontFamily = new FontCollection().Add(".\\Assets\\Fonts\\OpenSans.ttf");
var fontFamily = new FontCollection().Add(Path.GetFullPath(@"./Assets/Fonts/OpenSans.ttf"));

return new Container(containerSize)
.WithBackground(Color.Orange)
Expand Down
2 changes: 1 addition & 1 deletion Tests/SaverTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ private static Container CreateTemplate()
Size containerSize = new(512, 256);
Point center = new(256, 128);

var fontFamily = new FontCollection().Add(@".\Assets\Fonts\OpenSans.ttf");
var fontFamily = new FontCollection().Add(Path.GetFullPath(@"./Assets/Fonts/OpenSans.ttf"));

return new Container(containerSize)
.WithBackground(Color.Orange)
Expand Down
2 changes: 1 addition & 1 deletion Tests/VisualsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public void TestRectangle()
[TestMethod]
public void TestText()
{
var fontFamily = new FontCollection().Add(@".\Assets\Fonts\OpenSans.ttf");
var fontFamily = new FontCollection().Add(Path.GetFullPath(@"./Assets/Fonts/OpenSans.ttf"));
var text = new Text(fontFamily)
.WithPoint(new Point(350, 50))
.WithBrush(Color.Red)
Expand Down

0 comments on commit 765ca69

Please sign in to comment.