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

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

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

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

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

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

            Assert.AreEqual(1, dynamicProperties.Count);

            PropertyDescriptor sourcePathProperty = dynamicProperties[0];

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