| ... |
... |
@@ -1,7 +1,9 @@ |
| 1 |
1 |
=== Purpose === |
| 2 |
2 |
|
| 3 |
|
-* **Mocking simplifies unit testing by replacing the dependencies** of the unit being tested with simplified, simulated versions called mocks. Example: Consider a unit under test that relies on a database. In testing, the database can be mocked to return a static value, eliminating the need for an actual database. |
|
3 |
+* Mocking simplifies unit testing by replacing the dependencies of the unit being tested with simplified, simulated versions called mocks. |
|
4 |
+* Example: Consider a unit under test that relies on a database. In testing, the database can be mocked to return a static value, eliminating the need for an actual database. |
| 4 |
4 |
|
|
6 |
+=== === |
| 5 |
5 |
|
| 6 |
6 |
=== Benefits of Mocking === |
| 7 |
7 |
|