If we are testing our code using a range of test data, then sometimes, there is little difference between each test apart from the values. Rather than duplicating our Arrange/Act/Assert statements, we can reuse a single method, and Unity Test Runner will loop through a collection of test data, running the test method for each set of test data. The special method that provides multiple sets of test data to a test method is known as a DataProvider, and we'll create one in this recipe:
![](https://static.packt-cdn.com/products/9781839217616/graphics/assets/0bb7e1de-2202-4510-a86d-8f24080f17c8.png)
Figure 13.20 – Running the test method with many sets of values with a DataProvider method