I've always tried (female) swimsuits on with underwear underneath in dressing rooms, just as common courtesy (depending on the store, sometimes it's an actual rule and other times it's an implied courtesy-- at least, that's the impression I got). It's never caused me any issues in being able to determine whether the swimsuit fit or not. If you can't fit a swimsuit on while wearing undies, the swimsuit is probably too small anyways, so you should be fine~