Пример #1
0
        public void UnwrapOrElse_Theory(IMaybe <int> m1, int defaultValue, int expectation)
        {
            // arrange - theory
            // act
            var result = m1.UnwrapOrElse(() => defaultValue);

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