Skip to content

Commit 7456cca

Browse files
committed
Don't test UTF7 on .NET 5
1 parent b1b6492 commit 7456cca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

LibGit2Sharp.Tests/BlobFixture.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System.Text;
44
using LibGit2Sharp.Tests.TestHelpers;
55
using Xunit;
6-
using Xunit.Extensions;
76

87
namespace LibGit2Sharp.Tests
98
{
@@ -44,6 +43,7 @@ public void CanGetBlobAsFilteredText(string autocrlf, string expectedText)
4443
}
4544
}
4645

46+
#if NETFRAMEWORK || NETCOREAPP2_1
4747
[Theory]
4848
[InlineData("ascii", 4, "31 32 33 34")]
4949
[InlineData("utf-7", 4, "31 32 33 34")]
@@ -83,6 +83,7 @@ public void CanGetBlobAsTextWithVariousEncodings(string encodingName, int expect
8383
Assert.Equal(expectedUtf7Chars, string.Join(" ", utf7Chars));
8484
}
8585
}
86+
#endif
8687

8788
[Fact]
8889
public void CanGetBlobSize()
@@ -185,7 +186,7 @@ public void CanStageAFileGeneratedFromABlobContentStream()
185186
var sb = new StringBuilder();
186187
for (int j = 0; j < 2000; j++)
187188
{
188-
sb.Append(((i + 1)*(j + 1)).ToString("X8"));
189+
sb.Append(((i + 1) * (j + 1)).ToString("X8"));
189190
}
190191
File.AppendAllText(Path.Combine(repo.Info.WorkingDirectory, "small.txt"), sb.ToString());
191192
}

LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>net472;netcoreapp2.1;net5.0</TargetFrameworks>
5-
<NoWarn>$(NoWarn);SYSLIB0001</NoWarn>
65
</PropertyGroup>
76

87
<ItemGroup>

0 commit comments

Comments
 (0)