Arc.Unit.Tests.Infrastructure.Data.NHibernate.CriteriaExamples.Should_create_property_is_greater_than_value_criteria C# (CSharp) Method

Should_create_property_is_greater_than_value_criteria() private method

        public void Should_create_property_is_greater_than_value_criteria()
        {
            var expected = DetachedCriteria.For<Person>()
                .Add(Restrictions.Gt("Age", 0));

            var actual = Criteria.For<Person>()
                .With<Person>(x => x.Age > 0);

            AssertCriteria.AreEqual(actual, expected);
        }