public void IsEqual_OneNull_ReturnsFalse()
        {
            //prepare
            _mappingArguments.Getter       = t => null;
            _mappingArguments.PropertyType = typeof(ICollection <DateTime>);
            var propertyMapping = new DateCollectionPropertyMapping <DateCollectionPropertyMappingTest>(_mappingArguments, null);
            DirectoryAttributeModification modification;
            //act
            var value = propertyMapping.IsEqual(this, new Collection <DateTime>(new[] { DateTime.Now }), out modification);

            //assert
            value.Should().Be.False();
            modification.Should().Not.Be.Null();
        }
        public void IsEqual_DifferentLengths_ReturnsFalse()
        {
            //prepare
            var date1 = DateTime.Now;
            var date2 = DateTime.Now.AddDays(1);
            var date3 = DateTime.Now.AddDays(2);

            _mappingArguments.PropertyType = typeof(Collection <DateTime>);
            _mappingArguments.Getter       = t => new Collection <DateTime>(new[] { date1, date2, date3 });
            var propertyMapping = new DateCollectionPropertyMapping <DateCollectionPropertyMappingTest>(_mappingArguments, null);
            DirectoryAttributeModification modification;
            //act
            var value = propertyMapping.IsEqual(this, new Collection <DateTime>(new[] { date1, date2 }), out modification);

            //assert
            value.Should().Be.False();
            modification.Should().Not.Be.Null();
        }