Skip to content

Commit

Permalink
Replace obsolete netcoreapp test target with net471
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcarbon authored and BobLd committed Mar 16, 2024
1 parent 1d2777d commit 321f321
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void RobotoHeaderReadCorrectly()

foreach (var s in data)
{
var parts = s.Split(' ', StringSplitOptions.RemoveEmptyEntries);
var parts = s.Split(' ').Where(x => x.Length > 0).ToArray();

var name = parts[0];

Expand Down
4 changes: 2 additions & 2 deletions src/UglyToad.PdfPig.Tests/Geometry/PdfPathExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ public void ContainsRectangleEvenOdd()

foreach (var c in words.Where(w => path.Contains(w.BoundingBox)).ToList())
{
Assert.Equal("in", c.Text.Split("_").Last());
Assert.Equal("in", c.Text.Split('_').Last());
words.Remove(c);
}
}

foreach (var w in words)
{
Assert.NotEqual("in", w.Text.Split("_").Last());
Assert.NotEqual("in", w.Text.Split('_').Last());
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public void CanGetBookmarks(string words)
builder.AddPage(PageSize.A4);

// Set bookmark items.
var inputs = words.Split(" ", StringSplitOptions.RemoveEmptyEntries);
var inputs = words.Split(' ').Where(x => x.Length > 0).ToArray();
builder.Bookmarks = new Bookmarks(inputs.Select(x => new DocumentBookmarkNode(x,
0,
new ExplicitDestination(1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public void Issue443()
const string hex =
@"00 0F 4A 43 42 31 33 36 36 31 32 32 37 2E 70 64 66 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 50 44 46 20 43 41 52 4F 01 00 FF FF FF FF 00 00 00 00 00 04 DF 28 00 00 00 00 AF 51 7E 82 AF 52 D7 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 81 81 03 0D 00 00 25 50 44 46 2D 31 2E 31 0A 25 E2 E3 CF D3 0D 0A 31 20 30 20 6F 62 6A";

var bytes = hex.Split(' ', StringSplitOptions.RemoveEmptyEntries).Select(x => HexToken.Convert(x[0], x[1]));
var bytes = hex.Split(' ').Where(x => x.Length > 0).Select(x => HexToken.Convert(x[0], x[1]));

var str = OtherEncodings.BytesAsLatin1String(bytes.ToArray());

Expand Down
2 changes: 1 addition & 1 deletion src/UglyToad.PdfPig.Tests/UglyToad.PdfPig.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp2.1;net8.0</TargetFrameworks>
<TargetFrameworks>net471;net8.0</TargetFrameworks>
<IsTestProject>true</IsTestProject>
<IsPackable>false</IsPackable>
<DebugType>full</DebugType>
Expand Down

0 comments on commit 321f321

Please sign in to comment.