Beispiel #1
0
        public void UnwrapOrElse_Theory(SimpleResult result, int defaultValue, int expectation)
        {
            // arrange
            Func <string, int> elseFn = s => defaultValue;

            // act
            var val = result.UnwrapOrElse(elseFn);

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