public void Calculates_offset_correctly_for_second_field()
        {
            var offset = FieldOffsetCalculator.CalculateFieldOffset((TestFieldStruct x) => x.SecondField);

            offset.Should().Be(4);
        }
        public void Calculates_offset_correctly_for_inner_struct_field()
        {
            var offset = FieldOffsetCalculator.CalculateFieldOffset((TestFieldStruct x) => x.InnerStructField);

            offset.Should().Be(12);
        }
        public void Calculates_offset_correctly_for_first_field()
        {
            var offset = FieldOffsetCalculator.CalculateFieldOffset((TestFieldStruct x) => x.FirstField);

            offset.Should().Be(0);
        }