public void TestXbfsHeaderRehash() { XbfsHeader header = GetHeader(); header.Files[0].Length = 123; Assert.False(header.IsHashValid); header.Rehash(); Assert.True(header.IsHashValid); }
public void TestXbfsHeaderParsing() { XbfsHeader header = GetHeader(); Assert.True(header.IsValid); Assert.True(header.IsHashValid); Assert.Equal(1, header.FormatVersion); Assert.Equal(1, header.SequenceNumber); Assert.Equal(9, header.LayoutVersion); Assert.Equal((ulong)0, header.Reserved08); Assert.Equal((ulong)0, header.Reserved10); Assert.Equal((ulong)0, header.Reserved18); }