Skip to content

Commit fe279d8

Browse files
Fix test (#238)
1 parent c49a225 commit fe279d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

MAPIInspector/Source/BlockParserTests/BlockStringATests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public void BlankLine_TwoLines_BlankLine_Line_NullTerminator_OtherData()
254254
// "line4\0" (null terminated)
255255
0x6C, 0x69, 0x6E, 0x65, 0x34, 0x00, // 6 bytes
256256
// Other data
257-
0xAA, 0xBB, 0xCC, 0xDD // 4 bytes
257+
0xAA, 0xBB, 0xCC // 3 bytes
258258
};
259259
var parser = new BinaryParser(bytes);
260260

@@ -284,14 +284,14 @@ public void BlankLine_TwoLines_BlankLine_Line_NullTerminator_OtherData()
284284
Assert.IsFalse(block4.BlankLine);
285285
Assert.AreEqual(15, block4.Offset);
286286
Assert.AreEqual(5, block4.Length);
287-
Assert.AreEqual(6, block4.Size); // Includes null terminator
287+
Assert.AreEqual(5, block4.Size);
288288

289-
Assert.AreEqual(21, parser.Offset);
289+
Assert.AreEqual(20, parser.Offset);
290290
Assert.AreEqual(4, parser.RemainingBytes);
291291

292292
// Verify other data is still there
293293
var otherData = Block.ParseT<uint>(parser);
294-
Assert.AreEqual(0xDDCCBBAA, otherData); // Little endian
294+
Assert.AreEqual(0xCCBBAA00, otherData); // Little endian
295295
}
296296

297297
[TestMethod]

0 commit comments

Comments
 (0)