How to use ArrayFixture in FitNesse?

It's hard for me to work with an array.

The Origanlly test was written as rowfixture, the requirements were later changed and now the order of the results matters.

It seems you need to pass the data to the base arrayfixture constructor, but I don't see how this is possible, or how you pass arguments to arrayfixture.

If someone has a working example of fitness and device code, I would be very grateful for its publication.

+3
source share
1 answer

ArrayFixture is most often used with DoFixture auto-wrap. If the method in the DoFixture table returns a list, ArrayFixture is created with the list and compares the list with the rest of the rows in the DoFixture table.

eg.

|mydofixture|
|mylistmethod|something|
|name1|name2|name3|
|value11|value12|value13|
|value21|value22|value23|

. http://fitsharp.imtqy.com/Fit/FixtureWrapper.html https://github.com/jediwhale/fitsharp/blob/master/source/fitTest/Double/SampleDomain.cs

+1

Source: https://habr.com/ru/post/1697945/


All Articles