public void Compare()
		{
			EntityType type = (EntityType) NHibernateUtil.Entity(typeof (EntityClass));

			EntityClass a = new EntityClass(1);
			EntityClass b = new EntityClass(2);

			EntityClass ca = new ComparableEntityClass(1);
			EntityClass cb = new ComparableEntityClass(2);

			Assert.AreEqual(-1, type.Compare(a, cb, EntityMode.Poco));
			Assert.AreEqual(-1, type.Compare(ca, b, EntityMode.Poco));
			Assert.AreEqual(-1, type.Compare(ca, cb, EntityMode.Poco));

			Assert.AreEqual(1, type.Compare(b, ca, EntityMode.Poco));
			Assert.AreEqual(1, type.Compare(cb, a, EntityMode.Poco));
			Assert.AreEqual(1, type.Compare(cb, ca, EntityMode.Poco));

			Assert.AreEqual(0, type.Compare(ca, a, EntityMode.Poco));
			Assert.AreEqual(0, type.Compare(a, ca, EntityMode.Poco));
		}
        public void Compare()
        {
            EntityType type = (EntityType)NHibernateUtil.Entity(typeof(EntityClass));

            EntityClass a = new EntityClass(1);
            EntityClass b = new EntityClass(2);

            EntityClass ca = new ComparableEntityClass(1);
            EntityClass cb = new ComparableEntityClass(2);

            Assert.AreEqual(-1, type.Compare(a, cb));
            Assert.AreEqual(-1, type.Compare(ca, b));
            Assert.AreEqual(-1, type.Compare(ca, cb));

            Assert.AreEqual(1, type.Compare(b, ca));
            Assert.AreEqual(1, type.Compare(cb, a));
            Assert.AreEqual(1, type.Compare(cb, ca));

            Assert.AreEqual(0, type.Compare(ca, a));
            Assert.AreEqual(0, type.Compare(a, ca));
        }