Question: what is the difference between white box testing and unit testing?
Answer: In white box testing, you do care how the internals of the thing being tested work. So instead of just checking the output of your thing, you might check that internal variables to the thing being tested are correct. Unit testing is a way of testing software components. The "Unit" is the thing being tested.