Bit of both probably kiwigf!
Not a big deal, but as the things can run either way, with either 'earth', it's a pita to think something doesn't work when all it needs is a shove in the opposite direction! And then maybe reversing. If you're starting from scratch with an unknown item, it's probably 50:50 which way it's set to go.
Motoring will confirm it - if it will go, that is - and will also set the polarity depending which way you hook up the battery.
Dyning will confirm direction (if it will charge), as long you have the means to spin it both ways if it won't play going the first way. But polarity may still have to be chosen. A meter will show whether the volts are + or - and then if it's not what you want, it can be swapped as described in previous posts.