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

Should_translate_property_ends_with_to_criteria() private method

private Should_translate_property_ends_with_to_criteria ( ) : void
return void
        public void Should_translate_property_ends_with_to_criteria()
        {
            var specification = new Specification<DomainObject>(x => x.Name.EndsWith("Tiit"));

            var actual = CriterionConverter.Convert(specification);

            Assert.That(actual, Is.Not.Null);
            Assert.That(actual.ToString(), Is.EqualTo("Name like %Tiit"));
        }
SpecificationConverterTests