public void EqualsCollectionWithHashSet()
        {
            var value1 = new[] { 10, 20 };

            var value2 = new HashSet <int> {
                10, 20
            };

            var t1 = new TypedValue(NHibernateUtil.Int32, value1, true);
            var t2 = new TypedValue(NHibernateUtil.Int32, value2, true);

            Assert.That(t1.Equals(t2), Is.True, "t1.Equals(t2)");
            Assert.That(t2.Equals(t1), Is.True, "t2.Equals(t1)");
        }
        public void EqualsCollection()
        {
            ArrayList value1 = new ArrayList();

            value1.Add(10);
            value1.Add(20);

            ArrayList value2 = (ArrayList)value1.Clone();

            TypedValue t1 = new TypedValue(NHibernateUtil.Int32, value1);
            TypedValue t2 = new TypedValue(NHibernateUtil.Int32, value2);

            Assert.IsTrue(t1.Equals(t2));
        }