Skip to content

Commit 85c49d1

Browse files
committed
Parameter line chopping
1 parent e65e4f1 commit 85c49d1

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft/Data/Sql/SsrpPacketTestData.cs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,9 @@ private static byte[] FormatSvrRespMessage(byte header, ReadOnlySpan<byte> respD
488488
/// <returns>A byte representation of one SVR_RESP message.</returns>
489489
/// <seealso href="https://learn.microsoft.com/en-us/openspecs/windows_protocols/mc-sqlr/2e1560c9-5097-4023-9f5e-72b9ff1ec3b1"/>
490490
/// <seealso href="https://learn.microsoft.com/en-us/openspecs/windows_protocols/mc-sqlr/45b52721-7a48-45cf-9c84-e6db905ad6df"/>
491-
private static byte[] FormatSvrRespMessage(byte header, ushort serializedResponseSize, ReadOnlySpan<byte> respData,
491+
private static byte[] FormatSvrRespMessage(byte header,
492+
ushort serializedResponseSize,
493+
ReadOnlySpan<byte> respData,
492494
int? realResponseSize = null)
493495
{
494496
byte[] realRespData = realResponseSize is null
@@ -562,10 +564,18 @@ private static byte[] CreateRespData(byte protocolVersion, ushort dacPort)
562564
/// <param name="shuffleKeys">If true, the key/value pairs will be written in a non-sequential order.</param>
563565
/// <returns>A byte representation of a RESP_DATA section.</returns>
564566
/// <seealso href="https://learn.microsoft.com/en-us/openspecs/windows_protocols/mc-sqlr/2e1560c9-5097-4023-9f5e-72b9ff1ec3b1"/>
565-
private static byte[] CreateRespData(string serverName, string instanceName, bool isClustered, string version,
567+
private static byte[] CreateRespData(string serverName,
568+
string instanceName,
569+
bool isClustered,
570+
string version,
566571
string? protocolParameters = null,
567-
bool lowercaseKey = false, bool omitTrailingSemicolons = false, bool omitKeyValueSeparators = false,
568-
bool omitServerName = false, bool omitInstanceName = false, bool omitIsClustered = false, bool omitVersion = false,
572+
bool lowercaseKey = false,
573+
bool omitTrailingSemicolons = false,
574+
bool omitKeyValueSeparators = false,
575+
bool omitServerName = false,
576+
bool omitInstanceName = false,
577+
bool omitIsClustered = false,
578+
bool omitVersion = false,
569579
bool shuffleKeys = false)
570580
{
571581
string serverNameKey = GenerateKeyValuePair("ServerName", serverName, omitServerName);

0 commit comments

Comments
 (0)