Skip to content

Commit ad7f07b

Browse files
committed
Disable CS1591 on new tests
1 parent 67cbb7b commit ad7f07b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Microsoft.Data.SqlClient/tests/UnitTests/UserAgentInfoTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ namespace Microsoft.Data.SqlClient.UnitTests
2626
/// </summary>
2727
public class UserAgentInfoTests
2828
{
29+
#pragma warning disable CS1591 // Test classes do not require XML documentation comments
2930
// Cached payload is within the 2,047‑byte spec and never null
3031
[Fact]
3132
public void CachedPayload_IsNotNull_And_WithinSpecLimit()
@@ -70,6 +71,7 @@ public void TruncateOrDefault_Behaviour(string? input, int max, string expected)
7071
string actual = UserAgentInfo.TruncateOrDefault(input, max);
7172
Assert.Equal(expected, actual);
7273
}
74+
#pragma warning restore CS1591
7375

7476
// AdjustJsonPayloadSize drops all low‑priority fields when required
7577

@@ -295,6 +297,7 @@ public void Dto_JsonPropertyNames_MatchConstants(
295297
}
296298
}
297299

300+
#pragma warning disable CS1591 // Test classes do not require XML documentation comments
298301
// End-to-end test that combines truncation, adjustment, and serialization
299302
[Fact]
300303
public void EndToEnd_Truncate_Adjust_Serialize_Works()
@@ -327,5 +330,6 @@ public void EndToEnd_Truncate_Adjust_Serialize_Works()
327330
JsonElement os = root.GetProperty(UserAgentInfoDto.OsJsonKey);
328331
Assert.Equal(osType, os.GetProperty(UserAgentInfoDto.OsInfo.TypeJsonKey).GetString());
329332
}
333+
#pragma warning restore CS1591
330334
}
331335
}

0 commit comments

Comments
 (0)