CombinationApprovals.VerifyAllCombinations equiavalent using Verify?

234 views Asked by At

Does the Verify library offer Combination Approvals and how would a sample one be implemented?

I would like to implement something like:

CombinationApprovals.VerifyAllCombinations(
    DoUpdateQuality,
    new string[] { "foo", "Aged Brie", "Backstage passes to a TAFKAL80ETC concert", "Sulfuras, Hand of Ragnaros" },
    new int[] { -1, 0, 5, 10, 12 },
    new int[] { -1, 0, 49, 51 }
    );

Is this possible to implement using Verify (https://github.com/VerifyTests/Verify#snapshot-management)

1

There are 1 answers

1
Simon On

You can achieve this with parameterised tests