#1 I think in this context you want to say, "This assignment is worth 5 points", because you are saying that the assignment represents 5 out of a possible 100 points for the entire class, all assignments included.
#2 I would say, "If you pass all the tests, you will receive a full score for assignment 1."