public void Map_should_return_expected_success_result(int value, bool expectedSuccess) { Inner.CheckMethod(value) .Map(Inner.MapMethod) .Handle(onSuccess => { expectedSuccess.Should().BeTrue(); onSuccess.Should().Be($"The number is: {value}"); }, onFailure => { expectedSuccess.Should().BeFalse(); onFailure.Should().Be("Number too large"); }); }