public static void Skip_Some() { Assert.Equal(Maybe.Unit, One.Skip()); Assert.Equal(Maybe.Unit, SomeText.Skip()); Assert.Equal(Maybe.Unit, SomeUri.Skip()); Assert.Equal(Maybe.Unit, AnyT.Some.Skip()); }
public static void GetHashCode_Some() { Assert.Equal(1.GetHashCode(), One.GetHashCode()); Assert.Equal(2.GetHashCode(), Two.GetHashCode()); Assert.Equal(2L.GetHashCode(), TwoL.GetHashCode()); #if !(NETSTANDARD2_0 || NETSTANDARD1_x || NETFRAMEWORK) // GetHashCode(StringComparison) Assert.Equal(MyText.GetHashCode(StringComparison.Ordinal), SomeText.GetHashCode()); #endif Assert.Equal(MyUri.GetHashCode(), SomeUri.GetHashCode()); var anyT = AnyT.New(); Assert.Equal(anyT.Value.GetHashCode(), anyT.Some.GetHashCode()); }