Skip to content

Commit d7adcb4

Browse files
committed
Use inline variable declaration for output parameters
1 parent 9ea1a06 commit d7adcb4

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/Kavod.Vba.Compression.Tests/TestCopyToken.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ public void GivenRangeOfPositionOffsetAndLengthPackingThenunPackingDataProducesT
2020
{
2121
var tokenData = CopyToken.Pack(position, offset, length);
2222

23-
UInt16 actualOffset;
24-
UInt16 actualLength;
25-
CopyToken.UnPack(tokenData, position, out actualOffset, out actualLength);
23+
CopyToken.UnPack(tokenData, position, out var actualOffset, out var actualLength);
2624

2725
Assert.Equal(offset, actualOffset);
2826
Assert.Equal(length, actualLength);

src/Kavod.Vba.Compression.Tests/TestTokenSequence.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ public void TestMatchMethod()
1212
{
1313
var bytes = new byte[] { 1, 1, 1, 2, 1, 1, 1, 2, 1, 2 };
1414

15-
UInt16 offset = 0;
16-
UInt16 length = 0;
17-
18-
Tokenizer.Match(bytes, 4, out offset, out length);
15+
Tokenizer.Match(bytes, 4, out var offset, out var length);
1916

2017
Assert.Equal(Convert.ToUInt16(4), offset);
2118
Assert.Equal(Convert.ToUInt16(5), length);

0 commit comments

Comments
 (0)