public void CreateDikeGeometryPoints_DikeProfileNull_ReturnsEmptyCollection()
        {
            // Call
            IEnumerable <Point2D> points = GrassCoverErosionInwardsChartDataPointsFactory.CreateDikeGeometryPoints(null);

            // Assert
            CollectionAssert.IsEmpty(points);
        }
        private void SetChartData()
        {
            GrassCoverErosionInwardsInput input = data.InputParameters;
            DikeProfile dikeProfile             = input.DikeProfile;

            GrassCoverErosionInwardsChartDataFactory.UpdateForeshoreGeometryChartDataName(foreshoreChartData, input);
            GrassCoverErosionInwardsChartDataFactory.UpdateDikeGeometryChartDataName(dikeGeometryChartData, dikeProfile);

            foreshoreChartData.Points    = GrassCoverErosionInwardsChartDataPointsFactory.CreateForeshoreGeometryPoints(input);
            dikeGeometryChartData.Points = GrassCoverErosionInwardsChartDataPointsFactory.CreateDikeGeometryPoints(dikeProfile);
            dikeHeightChartData.Points   = GrassCoverErosionInwardsChartDataPointsFactory.CreateDikeHeightPoints(input);
        }
        public void CreateDikeGeometryPoints_DikeProfile_ReturnsDikeGeometryCollection()
        {
            // Setup
            var roughnessPoints = new[]
            {
                new RoughnessPoint(new Point2D(1.1, 2.2), 0.5),
                new RoughnessPoint(new Point2D(3.3, 4.4), 0.6)
            };
            DikeProfile dikeProfile = DikeProfileTestFactory.CreateDikeProfile(roughnessPoints);

            // Call
            IEnumerable <Point2D> points = GrassCoverErosionInwardsChartDataPointsFactory.CreateDikeGeometryPoints(dikeProfile);

            // Assert
            CollectionAssert.AreEqual(roughnessPoints.Select(rp => rp.Point), points);
        }