Arc.Unit.Tests.Infrastructure.Data.NHibernate.SpecificationConverterTests.Should_translate_property_equals_variable_value_to_criteria C# (CSharp) Method

Should_translate_property_equals_variable_value_to_criteria() private method

        public void Should_translate_property_equals_variable_value_to_criteria()
        {
            var identity = 1;

            var specification = new Specification<DomainObject>(x => x.Id == identity);

            var actual = CriterionConverter.Convert(specification);

            Assert.That(actual, Is.Not.Null);
            Assert.That(actual.ToString(), Is.EqualTo("Id = 1"));
        }
SpecificationConverterTests