public void MapErr_Theory(SimpleResult result, int mappedErr, IResult <int, int> expectation) { // arrange Func <string, int> mapFn = s => mappedErr; // act var r = result.MapErr(mapFn); // assert Assert.Equal(expectation, r); }