Arc.Unit.Tests.Infrastructure.Data.NHibernate.CriteriaExamples.Should_create_property_equals_null_value_criteria C# (CSharp) Метод

Should_create_property_equals_null_value_criteria() приватный Метод

private Should_create_property_equals_null_value_criteria ( ) : void
Результат void
        public void Should_create_property_equals_null_value_criteria()
        {
            var expected = DetachedCriteria.For<Person>()
                .Add(Restrictions.IsNull("FirstName"));

            var actual = Criteria.For<Person>()
                .With<Person>(x => x.FirstName == null);

            AssertCriteria.AreEqual(actual, expected);
        }