Beispiel #1
0
        public void MapReturn_Theory(SimpleResult result, double mappedValue, double defaultValue, double expectation)
        {
            // arrange
            Func <int, double> mapFn = (i) => mappedValue;

            // act
            var val = result.MapReturn(mapFn, defaultValue);

            // assert
            Assert.Equal(expectation, val);
        }