Hi Anton. Good point.
The solution is to avoid imperative code (i.e., loops) and switch to declarative approach. Modern testing frameworks (such as xUnit) offer…
Hi Anton. Good point. It would be tedious to write a whole bunch of tests where the only difference would be rows of data.
The solution is to avoid imperative code (i.e., loops) and switch to declarative approach. Modern testing frameworks (such as xUnit) offer elegant declarative solution to that issue. We can annotate the test with:
[THEORY]
[INLINE DATA (10, 20, 30)]
[INLINE DATA (-1, -15, 100)]
...