コード例 #1
0
        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());
        }
コード例 #2
0
        public void FieldOrderDoesNotAffectEquality()
        {
            var list = DamlList.Of(ValuesFactory.Values1.Reverse());

            Assert.True(_list1.Equals(list));
        }
コード例 #3
0
 public void CanConvertBetweenProto()
 {
     ConvertThroughProto(_list1);
     ConvertThroughProto(DamlList.Of(new Value[] {}));
 }