Fix build errors and breaking changes after upgrading MSTest v3 to v4, or plan a complete v3-to-v4 migration.