public void Adjust_WhenArgumentIsNull_ThrowException(string anyVal, string arg) { Assert.Throws <ArgumentNullException>(() => MaybeFactory.MaybeOf("any").Adjust( just: val => arg, nothing: () => arg)); }
public void QuerySelectMany_WhenFieldHasNothing_CanNotRetrunSelectedMaybe() { var actual = from justTwo in Just(MaybeFactory.MaybeOf <int>((int?)null)) from just in justTwo select just; Assert.AreEqual(int_Nothing, actual); }