コード例 #1
0
        public void OrElse_Theory(SimpleResult result, SimpleResult elseResult, object expectation)
        {
            // arrange
            Func <SimpleResult> elseFn = () => elseResult;

            // act
            var r = result.OrElse(elseFn);

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