public void Identity_Functor_FMap() { var a = maker.Unit(1); var b = a.FMap(x => x + 1); Assert.AreEqual(2, b.Value); }
public void Identity_Monad_Unit() { var a = maker.Unit(1); Assert.AreEqual(1, a.Value); }