If a generator is 240 vac it has a viable neutral L0
If a generator is a 2-wire 120vac, it can not have a neutral. It would have to center tap the 120 vac sine wave to obtain a 60vac signal. It like all other 2-wire generators does not have an absurd center tap.
So a plug-in receptacle tester used here, is worthless to determine "polarity".
Plugged into shore power, there actually is a bonafide neutral regardless if the pole transformer is wound delta or wye.
But caution must be entertained if the service drop is three phase Delta. Two of the three phases would be viable but the third is a landmine.