The best way to test if the salmon has cooked through is when you can easily flake it with a fork and the flesh is opaque and firm to the touch. You can also test with an instant-read meat thermometer; when it reaches an internal temperature of 145°F, you'll know it's done.