public void Map_Theory(SimpleResult result, double mappedValue, object expectation) { // arrange Func <int, double> mapFn = (i) => mappedValue; // act var r = result.Map(mapFn); // assert Assert.Equal(expectation, r); }