public void FieldOrderDoesNotAffectHashCode() { var list1 = DamlList.Of(new Int64(12345), new Party("party1"), new Bool(false)); var list2 = DamlList.Of(new Party("party1"), new Int64(12345), new Bool(false)); Assert.True(list1.GetHashCode() == list2.GetHashCode()); }
public void FieldOrderDoesNotAffectEquality() { var list = DamlList.Of(ValuesFactory.Values1.Reverse()); Assert.True(_list1.Equals(list)); }
public void CanConvertBetweenProto() { ConvertThroughProto(_list1); ConvertThroughProto(DamlList.Of(new Value[] {})); }