public void Constructor_WithData_ReturnExpectedValues()
        {
            // Setup
            const string someFilePath = "location/to/a/file";
            var          collection   = new DikeProfileCollection();

            collection.AddRange(Enumerable.Empty <DikeProfile>(), someFilePath);

            // Call
            var properties = new DikeProfileCollectionProperties(collection);

            // Assert
            Assert.IsInstanceOf <ObjectProperties <DikeProfileCollection> >(properties);
            Assert.AreSame(collection, properties.Data);
            Assert.AreEqual(someFilePath, properties.SourcePath);
        }
        public void Constructor_WithData_PropertiesHaveExpectedAttributesValues()
        {
            // Setup
            var collection = new DikeProfileCollection();

            // Call
            var properties = new DikeProfileCollectionProperties(collection);

            // Assert
            PropertyDescriptorCollection dynamicProperties = PropertiesTestHelper.GetAllVisiblePropertyDescriptors(properties);

            Assert.AreEqual(1, dynamicProperties.Count);

            PropertyDescriptor dikeProfileCollectionSourcePathProperty = dynamicProperties[0];

            Assert.IsNotNull(dikeProfileCollectionSourcePathProperty);
            Assert.IsTrue(dikeProfileCollectionSourcePathProperty.IsReadOnly);
            Assert.AreEqual("Algemeen", dikeProfileCollectionSourcePathProperty.Category);
            Assert.AreEqual("Bronlocatie", dikeProfileCollectionSourcePathProperty.DisplayName);
            Assert.AreEqual(
                "De locatie van het bestand waaruit de dijkprofielen zijn geïmporteerd.",
                dikeProfileCollectionSourcePathProperty.Description);
        }