コード例 #1
0
        public void Transform_may_create_a_transformed_non_matching_specification_expression_for_a_new_type(Pet pet)
        {
            var spec        = Spec.Func <Person>(x => x.Name == "One");
            var transformed = spec.Transform(t => t.To <Pet>(x => x.Owner));

            pet.Owner.Name = "Two";
            Assert.That(() => transformed.Matches(pet), Is.False);
        }