Generated declarations and application code change for different reasons. A separate generated directory makes it clear what can be recreated from native headers and what needs human maintenance.

Validate the boundary

Simple smoke tests that cross the native and managed boundary can catch mistakes a text comparison will miss, especially around layouts and calling conventions.