black white box testing code example
Example: white box testing
white box testing
When the tester knows the code behind
functionality and uses that knowledge for testing
purposes, it is called white box testing.
Unit test is considered as white box testing.