public void KleisliIntoSimple() { var composed = Function1.Into(Function2); var result = composed(value)(stateInstance); Assert.Equal(stateInstance, result.Item1); Assert.Equal(value + 1, result.Item2); }
public void KleisliSelectManyFull() { var composed = Function1.Into(Function2, (a, b) => a + b); var result = composed(value)(stateInstance); Assert.Equal(stateInstance, result.Item1); Assert.Equal(value + value + 1, result.Item2); }