Ensure the clams and mussels are tightly closed before cooking, but if they're open, tap them gently. If they close, they're good to go. If they remain open, discard them.