public static void GetHashCode_None() { Assert.Equal(0, Ø.GetHashCode()); Assert.Equal(0, ØL.GetHashCode()); Assert.Equal(0, NoText.GetHashCode()); Assert.Equal(0, NoUri.GetHashCode()); Assert.Equal(0, AnyT.None.GetHashCode()); }
public static void AndThen() { // Some Some -> Some Assert.Equal(TwoL, One.AndThen(TwoL)); // Some None -> None Assert.Equal(ØL, One.AndThen(ØL)); // None Some -> None Assert.Equal(ØL, Ø.AndThen(TwoL)); // None None -> None Assert.Equal(ØL, Ø.AndThen(ØL)); // AndThen() is AndThenRTL() flipped. Assert.Equal(TwoL, TwoL.AndThenRTL(One)); Assert.Equal(ØL, ØL.AndThenRTL(One)); Assert.Equal(ØL, TwoL.AndThenRTL(Ø)); Assert.Equal(ØL, ØL.AndThenRTL(Ø)); }