Currently there are a set of objects that are used for testing formatters and VisualizerData in ExpressionToString.Tests.Objects. Once #71 is complete, we could have a single test method that would create a Cartesian product of registered formatters and objects/object names into an an xUnit TheoryData; the results would come from text files.
The maintenance burden of making sure each test method has a corresponding object and each object has a corresponding method is rather heavy.
Currently there are a set of objects that are used for testing formatters and VisualizerData in
ExpressionToString.Tests.Objects
. Once #71 is complete, we could have a single test method that would create a Cartesian product of registered formatters and objects/object names into an an xUnitTheoryData
; the results would come from text files.The maintenance burden of making sure each test method has a corresponding object and each object has a corresponding method is rather heavy.
The only reason not to do this is because Test Explorer currently displays all the results in a single long list, with no way to group the results. Ideally, the results should be grouped on each value passed into the method, somehow. (see https://developercommunity.visualstudio.com/idea/679322/show-multiple-test-results-in-hierarchy.html)
Test Explorer allows grouping test methods by various attributes of the method (hopefully at some point by trait as well -- https://developercommunity.visualstudio.com/content/problem/588029/no-longer-able-to-group-by-trait-in-test-explorer.html).