What am i doing wrong?

Thank you for the answer dlloyd.

I tried to connect the LED directly to arduino the way you said but nothing happend.

i used 10 LEDs and other 10 resistors to test but no one seems to be working.

Can i test the LED with a normal heap?

If not, how can i do that?