|
|
|
|
|
by bluGill
716 days ago
|
|
From the GP: mock data being manually manipulated by the test gave the result of test expected. These tests are easy to write - your mock returns something, and then you verify that the API does nothing (thus the test fails), then returns whatever the mock does and the test passes. These tests are easy to write and they do fail until code is written. However they are of negative value - you cannot refactor anything as the code only calls a mock, and returns some data from the mock. |
|