Your attorney is wrong. You can use any combination of the surnames listed on the marriage certificate.
Example: Mary Smith marries John Doe.
Mary can use Mary Smith, Mary Doe, Mary Smith Doe, or Mary Smith-Doe as her legal name on USCIS documents.
Chapter 5 - Verification of Identifying Information | USCIS