We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 44633e5 + 540ee91 commit 7839f46Copy full SHA for 7839f46
src/Directory.Build.props
@@ -1,12 +1,12 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<Project>
3
<PropertyGroup>
4
- <Version>1.27.0</Version>
+ <Version>1.27.1</Version>
5
<AssemblyVersion>1.0.0</AssemblyVersion>
6
<PackageTags>Polyfill</PackageTags>
7
<DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports>
8
<SignAssembly>false</SignAssembly>
9
- <NoWarn>CS1591;NETSDK1138;NU1901;NU1902</NoWarn>
+ <NoWarn>CS1591;NETSDK1138;NU1901;NU1902;NU1903</NoWarn>
10
<CheckEolTargetFramework>false</CheckEolTargetFramework>
11
<LangVersion>11</LangVersion>
12
<ImplicitUsings>false</ImplicitUsings>
src/Polyfill/Nullability/NullabilityInfo.cs
@@ -5,6 +5,7 @@
#nullable enable
using System.Linq;
+using System.Diagnostics.CodeAnalysis;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
@@ -15,7 +16,8 @@ namespace System.Reflection
15
16
/// <summary>
17
/// A class that represents nullability info
18
/// </summary>
- #if PolyPublic
19
+ [ExcludeFromCodeCoverage]
20
+#if PolyPublic
21
public
22
#endif
23
sealed class NullabilityInfo
src/Polyfill/Nullability/NullabilityInfoContext.cs
@@ -18,7 +19,8 @@ namespace System.Reflection
/// Provides APIs for populating nullability information/context from reflection members:
/// <see cref="ParameterInfo"/>, <see cref="FieldInfo"/>, <see cref="PropertyInfo"/> and <see cref="EventInfo"/>.
24
25
26
sealed class NullabilityInfoContext
src/Tests/NullabilitySync.cs
@@ -42,6 +42,7 @@ public async Task Run()
42
43
44
45
+ using System.Diagnostics.CodeAnalysis;
46
47
""";
48
@@ -73,6 +74,7 @@ static string MakeInternal(string source) =>
73
74
.Replace(
75
"public sealed class",
76
"""
77
78
#if PolyPublic
79
80
src/Tests/PolyfillExtensionsTests_IEnumerable.cs
@@ -46,10 +46,10 @@ public void Chunk_SizeOf3()
var chunks = enumerable.Chunk(3).ToList();
49
- Assert.AreEqual(new int[] { 1, 2, 3 }, chunks[0]);
50
- Assert.AreEqual(new int[] { 4, 5, 6 }, chunks[1]);
51
- Assert.AreEqual(new int[] { 7, 8, 9 }, chunks[2]);
52
- Assert.AreEqual(new int[] { 10, 11 }, chunks[3]);
+ Assert.AreEqual(new[] { 1, 2, 3 }, chunks[0]);
+ Assert.AreEqual(new[] { 4, 5, 6 }, chunks[1]);
+ Assert.AreEqual(new[] { 7, 8, 9 }, chunks[2]);
+ Assert.AreEqual(new[] { 10, 11 }, chunks[3]);
53
}
54
55
[Test]
@@ -59,8 +59,8 @@ public void Chunk_SizeOf8()
59
60
var chunks = enumerable.Chunk(8).ToList();
61
62
- Assert.AreEqual(new int[] { 1, 2, 3, 4, 5, 6, 7, 8 }, chunks[0]);
63
- Assert.AreEqual(new int[] { 9, 10, 11 }, chunks[1]);
+ Assert.AreEqual(new[] { 1, 2, 3, 4, 5, 6, 7, 8 }, chunks[0]);
+ Assert.AreEqual(new[] { 9, 10, 11 }, chunks[1]);
64
65
66
src/Tests/UnreachableExceptionTests.cs
@@ -4,8 +4,6 @@ namespace Tests;
public class UnreachableExceptionTests
{
- public void UnreachableException_Compatiblity_with_all_TargetFrameworks()
- {
+ public void UnreachableException_Compatibility_with_all_TargetFrameworks() =>
_ = Assert.Throws<UnreachableException>(() => throw new UnreachableException());
- }
0 commit comments