Exemple #1
0
        public void should_not_be_equal_without_the_equality_comparer()
        {
            spec = new PersistenceSpecification <Cat>(sessionSource);

            typeof(ApplicationException).ShouldBeThrownBy(() =>
                                                          spec.CheckList(x => x.AllKittens, cat.AllKittens).VerifyTheMappings());
        }
        public void should_not_be_equal_without_the_equality_comparer()
        {
            _spec = new PersistenceSpecification<Cat>(_sessionSource);

            typeof(ApplicationException).ShouldBeThrownBy(() =>
                _spec.CheckList(x => x.AllKittens, _cat.AllKittens).VerifyTheMappings());
        }
Exemple #3
0
 public void Comparing_objects_in_two_lists_should_use_the_specified_IEqualityComparer()
 {
     spec.CheckList(x => x.AllKittens, cat.AllKittens).VerifyTheMappings();
 }