Yes, as AmanZeek said,
* it's not reccommended to use assertions on public method's arguments
* but you can use them on the arguments of private methods
* it's alright to use them in the default case of a switch for something you know will never ever happen
* it's not appropiate to modify a class's state from an assertion