public void Gets_Property_Value() { var expectedBytes = new byte[] { 0x97, 0x7b, 0x45, 0xcb, 0xdb, 0xc2, 0x82, 0x43, 0x92, 0x10, 0x55, 0x19, 0xe9, 0x93, 0x28, 0xfa }; var reader = new Mock <IPstReader>(); reader.Setup(r => r.FindBlock(0x1234)) .Returns(Block.Create(HeapData)); var node = new Node(0x21, 0x1234, 0x5678, reader.Object); var pc = new PropertyContext(node, reader.Object); var result = pc.Get(PropertyKey.RecordKey); CollectionAssert.AreEqual(expectedBytes, result.ToArray()); }