Index: Core/Components/src/Core.Components.Charting/Core.Components.Charting.csproj
===================================================================
diff -u -r8aa11a9aa48733a5b5b72c58c71674472825b26c -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/src/Core.Components.Charting/Core.Components.Charting.csproj (.../Core.Components.Charting.csproj) (revision 8aa11a9aa48733a5b5b72c58c71674472825b26c)
+++ Core/Components/src/Core.Components.Charting/Core.Components.Charting.csproj (.../Core.Components.Charting.csproj) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -32,6 +32,7 @@
+
@@ -44,6 +45,7 @@
+
Index: Core/Components/src/Core.Components.Charting/Data/ChartLineData.cs
===================================================================
diff -u -r1dd7affebae1187cb96778e85d021f7dc5ac9e50 -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/src/Core.Components.Charting/Data/ChartLineData.cs (.../ChartLineData.cs) (revision 1dd7affebae1187cb96778e85d021f7dc5ac9e50)
+++ Core/Components/src/Core.Components.Charting/Data/ChartLineData.cs (.../ChartLineData.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -21,6 +21,7 @@
using System;
using System.Collections.Generic;
+using Core.Components.Charting.Styles;
namespace Core.Components.Charting.Data
{
@@ -39,5 +40,10 @@
/// Thrown when is
/// null or only whitespace.
public ChartLineData(IEnumerable> points, string name) : base(points, name) {}
+
+ ///
+ /// Gets or sets the style of the line.
+ ///
+ public ChartLineStyle Style { get; set; }
}
}
\ No newline at end of file
Index: Core/Components/src/Core.Components.Charting/Styles/ChartLineStyle.cs
===================================================================
diff -u
--- Core/Components/src/Core.Components.Charting/Styles/ChartLineStyle.cs (revision 0)
+++ Core/Components/src/Core.Components.Charting/Styles/ChartLineStyle.cs (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -0,0 +1,60 @@
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Drawing;
+using System.Drawing.Drawing2D;
+
+namespace Core.Components.Charting.Styles
+{
+ ///
+ /// This class represents styling of a line on a chart.
+ ///
+ public class ChartLineStyle
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The color of the line.
+ /// The width of the line.
+ /// The of the line.
+ public ChartLineStyle(Color color, int width, DashStyle style)
+ {
+ Color = color;
+ Width = width;
+ Style = style;
+ }
+
+ ///
+ /// Gets the line color.
+ ///
+ public Color Color { get; private set; }
+
+ ///
+ /// Gets the line width.
+ ///
+ public int Width { get; private set; }
+
+ ///
+ /// Gets the line style.
+ ///
+ public DashStyle Style { get; private set; }
+ }
+}
Index: Core/Components/src/Core.Components.DotSpatial/Converter/MapDataHelper.cs
===================================================================
diff -u -rc223ed8ae4885b7b1b331ef4a8d710edb644772c -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/src/Core.Components.DotSpatial/Converter/MapDataHelper.cs (.../MapDataHelper.cs) (revision c223ed8ae4885b7b1b331ef4a8d710edb644772c)
+++ Core/Components/src/Core.Components.DotSpatial/Converter/MapDataHelper.cs (.../MapDataHelper.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -6,7 +6,7 @@
namespace Core.Components.DotSpatial.Converter
{
///
- /// Helper methods related to instancees.
+ /// Helper methods related to instances.
///
public static class MapDataHelper
{
Index: Core/Components/src/Core.Components.OxyPlot/Converter/ChartDataHelper.cs
===================================================================
diff -u
--- Core/Components/src/Core.Components.OxyPlot/Converter/ChartDataHelper.cs (revision 0)
+++ Core/Components/src/Core.Components.OxyPlot/Converter/ChartDataHelper.cs (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -0,0 +1,66 @@
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using System.Drawing.Drawing2D;
+using Core.Components.Charting.Data;
+using OxyPlot;
+
+namespace Core.Components.OxyPlot.Converter
+{
+ ///
+ /// Helper methods related to instances.
+ ///
+ public static class ChartDataHelper
+ {
+ ///
+ /// Converts to .
+ ///
+ /// The to convert.
+ /// The converted .
+ /// Thrown when
+ /// cannot be converted.
+ public static LineStyle Convert(DashStyle dashStyle)
+ {
+ LineStyle lineStyle = LineStyle.Solid;
+ switch (dashStyle)
+ {
+ case DashStyle.Solid:
+ break;
+ case DashStyle.Dash:
+ lineStyle = LineStyle.Dash;
+ break;
+ case DashStyle.Dot:
+ lineStyle = LineStyle.Dot;
+ break;
+ case DashStyle.DashDot:
+ lineStyle = LineStyle.DashDot;
+ break;
+ case DashStyle.DashDotDot:
+ lineStyle = LineStyle.DashDotDot;
+ break;
+ default:
+ throw new NotSupportedException();
+ }
+ return lineStyle;
+ }
+ }
+}
Index: Core/Components/src/Core.Components.OxyPlot/Converter/ChartLineDataConverter.cs
===================================================================
diff -u -r8aa11a9aa48733a5b5b72c58c71674472825b26c -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/src/Core.Components.OxyPlot/Converter/ChartLineDataConverter.cs (.../ChartLineDataConverter.cs) (revision 8aa11a9aa48733a5b5b72c58c71674472825b26c)
+++ Core/Components/src/Core.Components.OxyPlot/Converter/ChartLineDataConverter.cs (.../ChartLineDataConverter.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -22,6 +22,8 @@
using System.Collections.Generic;
using System.Linq;
using Core.Components.Charting.Data;
+using Core.Components.Charting.Styles;
+using OxyPlot;
using OxyPlot.Series;
namespace Core.Components.OxyPlot.Converter
@@ -38,9 +40,23 @@
ItemsSource = data.Points.ToArray(),
Mapping = TupleToDataPoint,
IsVisible = data.IsVisible,
- Tag = data
+ Tag = data,
+ Title = data.Name
};
+
+ CreateStyle(series, data.Style);
+
return new List{ series };
}
+
+ private static void CreateStyle(LineSeries series, ChartLineStyle style)
+ {
+ if (style != null)
+ {
+ series.Color = OxyColor.FromArgb(style.Color.A, style.Color.R, style.Color.G, style.Color.B);
+ series.StrokeThickness = style.Width;
+ series.LineStyle = ChartDataHelper.Convert(style.Style);
+ }
+ }
}
}
\ No newline at end of file
Index: Core/Components/src/Core.Components.OxyPlot/Core.Components.OxyPlot.csproj
===================================================================
diff -u -r8aa11a9aa48733a5b5b72c58c71674472825b26c -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/src/Core.Components.OxyPlot/Core.Components.OxyPlot.csproj (.../Core.Components.OxyPlot.csproj) (revision 8aa11a9aa48733a5b5b72c58c71674472825b26c)
+++ Core/Components/src/Core.Components.OxyPlot/Core.Components.OxyPlot.csproj (.../Core.Components.OxyPlot.csproj) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -43,13 +43,15 @@
+
Properties\GlobalAssembly.cs
+
Index: Core/Components/test/Core.Components.Charting.Test/Core.Components.Charting.Test.csproj
===================================================================
diff -u -r8aa11a9aa48733a5b5b72c58c71674472825b26c -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.Charting.Test/Core.Components.Charting.Test.csproj (.../Core.Components.Charting.Test.csproj) (revision 8aa11a9aa48733a5b5b72c58c71674472825b26c)
+++ Core/Components/test/Core.Components.Charting.Test/Core.Components.Charting.Test.csproj (.../Core.Components.Charting.Test.csproj) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -44,6 +44,7 @@
+
@@ -53,8 +54,12 @@
+
+
+ Copying.Lesser.licenseheader
+
Index: Core/Components/test/Core.Components.Charting.Test/Data/ChartAreaDataTest.cs
===================================================================
diff -u -r8aa11a9aa48733a5b5b72c58c71674472825b26c -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.Charting.Test/Data/ChartAreaDataTest.cs (.../ChartAreaDataTest.cs) (revision 8aa11a9aa48733a5b5b72c58c71674472825b26c)
+++ Core/Components/test/Core.Components.Charting.Test/Data/ChartAreaDataTest.cs (.../ChartAreaDataTest.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,4 +1,25 @@
-using System;
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
using System.Collections.ObjectModel;
using Core.Common.TestUtil;
using Core.Components.Charting.Data;
Index: Core/Components/test/Core.Components.Charting.Test/Data/ChartDataCollectionTest.cs
===================================================================
diff -u -r8aa11a9aa48733a5b5b72c58c71674472825b26c -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.Charting.Test/Data/ChartDataCollectionTest.cs (.../ChartDataCollectionTest.cs) (revision 8aa11a9aa48733a5b5b72c58c71674472825b26c)
+++ Core/Components/test/Core.Components.Charting.Test/Data/ChartDataCollectionTest.cs (.../ChartDataCollectionTest.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,4 +1,25 @@
-using System;
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
using System.Linq;
using Core.Common.TestUtil;
using Core.Components.Charting.Data;
Index: Core/Components/test/Core.Components.Charting.Test/Data/ChartDataTest.cs
===================================================================
diff -u -r1dd7affebae1187cb96778e85d021f7dc5ac9e50 -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.Charting.Test/Data/ChartDataTest.cs (.../ChartDataTest.cs) (revision 1dd7affebae1187cb96778e85d021f7dc5ac9e50)
+++ Core/Components/test/Core.Components.Charting.Test/Data/ChartDataTest.cs (.../ChartDataTest.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,4 +1,25 @@
-using System;
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
using Core.Common.Base;
using Core.Common.TestUtil;
using Core.Components.Charting.Data;
Index: Core/Components/test/Core.Components.Charting.Test/Data/ChartLineDataTest.cs
===================================================================
diff -u -r8aa11a9aa48733a5b5b72c58c71674472825b26c -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.Charting.Test/Data/ChartLineDataTest.cs (.../ChartLineDataTest.cs) (revision 8aa11a9aa48733a5b5b72c58c71674472825b26c)
+++ Core/Components/test/Core.Components.Charting.Test/Data/ChartLineDataTest.cs (.../ChartLineDataTest.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,4 +1,25 @@
-using System;
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
using System.Collections.ObjectModel;
using System.Linq;
using Core.Common.TestUtil;
Index: Core/Components/test/Core.Components.Charting.Test/Data/ChartPointDataTest.cs
===================================================================
diff -u -r8aa11a9aa48733a5b5b72c58c71674472825b26c -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.Charting.Test/Data/ChartPointDataTest.cs (.../ChartPointDataTest.cs) (revision 8aa11a9aa48733a5b5b72c58c71674472825b26c)
+++ Core/Components/test/Core.Components.Charting.Test/Data/ChartPointDataTest.cs (.../ChartPointDataTest.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,4 +1,25 @@
-using System;
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
using System.Collections.ObjectModel;
using Core.Common.TestUtil;
using Core.Components.Charting.Data;
Index: Core/Components/test/Core.Components.Charting.Test/Data/PointBasedChartDataTest.cs
===================================================================
diff -u -r8aa11a9aa48733a5b5b72c58c71674472825b26c -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.Charting.Test/Data/PointBasedChartDataTest.cs (.../PointBasedChartDataTest.cs) (revision 8aa11a9aa48733a5b5b72c58c71674472825b26c)
+++ Core/Components/test/Core.Components.Charting.Test/Data/PointBasedChartDataTest.cs (.../PointBasedChartDataTest.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,4 +1,25 @@
-using System;
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Core.Common.TestUtil;
Index: Core/Components/test/Core.Components.Charting.Test/Properties/AssemblyInfo.cs
===================================================================
diff -u -rce6b88b227d337f33b2566122b8624f9a74a3711 -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.Charting.Test/Properties/AssemblyInfo.cs (.../AssemblyInfo.cs) (revision ce6b88b227d337f33b2566122b8624f9a74a3711)
+++ Core/Components/test/Core.Components.Charting.Test/Properties/AssemblyInfo.cs (.../AssemblyInfo.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,4 +1,25 @@
-using System.Reflection;
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Core.Components.Charting.Test")]
Index: Core/Components/test/Core.Components.Charting.Test/Styles/ChartLineStyleTest.cs
===================================================================
diff -u
--- Core/Components/test/Core.Components.Charting.Test/Styles/ChartLineStyleTest.cs (revision 0)
+++ Core/Components/test/Core.Components.Charting.Test/Styles/ChartLineStyleTest.cs (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -0,0 +1,49 @@
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using Core.Components.Charting.Styles;
+using NUnit.Framework;
+
+namespace Core.Components.Charting.Test.Styles
+{
+ [TestFixture]
+ public class ChartLineStyleTest
+ {
+ [Test]
+ public void Constructor_WithAllParameters_SetsProperties()
+ {
+ // Setup
+ var color = Color.AliceBlue;
+ var width = 3;
+ var style = DashStyle.Solid;
+
+ // Call
+ var lineStyle = new ChartLineStyle(color, width, style);
+
+ // Assert
+ Assert.AreEqual(color, lineStyle.Color);
+ Assert.AreEqual(width, lineStyle.Width);
+ Assert.AreEqual(style, lineStyle.Style);
+ }
+ }
+}
\ No newline at end of file
Index: Core/Components/test/Core.Components.Charting.Test/packages.config
===================================================================
diff -u -rce6b88b227d337f33b2566122b8624f9a74a3711 -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.Charting.Test/packages.config (.../packages.config) (revision ce6b88b227d337f33b2566122b8624f9a74a3711)
+++ Core/Components/test/Core.Components.Charting.Test/packages.config (.../packages.config) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,4 +1,27 @@
+
+
\ No newline at end of file
Index: Core/Components/test/Core.Components.OxyPlot.Forms.Test/ChartControlTest.cs
===================================================================
diff -u -r1dd7affebae1187cb96778e85d021f7dc5ac9e50 -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.OxyPlot.Forms.Test/ChartControlTest.cs (.../ChartControlTest.cs) (revision 1dd7affebae1187cb96778e85d021f7dc5ac9e50)
+++ Core/Components/test/Core.Components.OxyPlot.Forms.Test/ChartControlTest.cs (.../ChartControlTest.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,4 +1,25 @@
-using System;
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
Index: Core/Components/test/Core.Components.OxyPlot.Forms.Test/Core.Components.OxyPlot.Forms.Test.csproj
===================================================================
diff -u -r30b12b82918d500fe834eafd9f6cd9b2c5dbe60f -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.OxyPlot.Forms.Test/Core.Components.OxyPlot.Forms.Test.csproj (.../Core.Components.OxyPlot.Forms.Test.csproj) (revision 30b12b82918d500fe834eafd9f6cd9b2c5dbe60f)
+++ Core/Components/test/Core.Components.OxyPlot.Forms.Test/Core.Components.OxyPlot.Forms.Test.csproj (.../Core.Components.OxyPlot.Forms.Test.csproj) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -64,6 +64,9 @@
+
+ Copying.Lesser.licenseheader
+
Index: Core/Components/test/Core.Components.OxyPlot.Forms.Test/LinearPlotViewTest.cs
===================================================================
diff -u -r30b12b82918d500fe834eafd9f6cd9b2c5dbe60f -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.OxyPlot.Forms.Test/LinearPlotViewTest.cs (.../LinearPlotViewTest.cs) (revision 30b12b82918d500fe834eafd9f6cd9b2c5dbe60f)
+++ Core/Components/test/Core.Components.OxyPlot.Forms.Test/LinearPlotViewTest.cs (.../LinearPlotViewTest.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,4 +1,25 @@
-using System.Linq;
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Linq;
using System.Windows.Forms;
using NUnit.Framework;
using OxyPlot;
Index: Core/Components/test/Core.Components.OxyPlot.Forms.Test/Properties/AssemblyInfo.cs
===================================================================
diff -u -ra70fac40e34e16bed007b1d0d4e437d91c89d0cb -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.OxyPlot.Forms.Test/Properties/AssemblyInfo.cs (.../AssemblyInfo.cs) (revision a70fac40e34e16bed007b1d0d4e437d91c89d0cb)
+++ Core/Components/test/Core.Components.OxyPlot.Forms.Test/Properties/AssemblyInfo.cs (.../AssemblyInfo.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,4 +1,25 @@
-using System.Reflection;
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Core.Components.OxyPlot.Forms.Test")]
Index: Core/Components/test/Core.Components.OxyPlot.Forms.Test/packages.config
===================================================================
diff -u -r9b19f753c055f426fcea7b6c01cdf43c8d9f2468 -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.OxyPlot.Forms.Test/packages.config (.../packages.config) (revision 9b19f753c055f426fcea7b6c01cdf43c8d9f2468)
+++ Core/Components/test/Core.Components.OxyPlot.Forms.Test/packages.config (.../packages.config) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,4 +1,27 @@
+
+
Index: Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartAreaDataConverterTest.cs
===================================================================
diff -u -r1dd7affebae1187cb96778e85d021f7dc5ac9e50 -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartAreaDataConverterTest.cs (.../ChartAreaDataConverterTest.cs) (revision 1dd7affebae1187cb96778e85d021f7dc5ac9e50)
+++ Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartAreaDataConverterTest.cs (.../ChartAreaDataConverterTest.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,4 +1,25 @@
-using System;
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
Index: Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartDataCollectionConverterTest.cs
===================================================================
diff -u -r1dd7affebae1187cb96778e85d021f7dc5ac9e50 -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartDataCollectionConverterTest.cs (.../ChartDataCollectionConverterTest.cs) (revision 1dd7affebae1187cb96778e85d021f7dc5ac9e50)
+++ Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartDataCollectionConverterTest.cs (.../ChartDataCollectionConverterTest.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,4 +1,25 @@
-using System;
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Core.Common.TestUtil;
Index: Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartDataConverterTest.cs
===================================================================
diff -u -r1dd7affebae1187cb96778e85d021f7dc5ac9e50 -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartDataConverterTest.cs (.../ChartDataConverterTest.cs) (revision 1dd7affebae1187cb96778e85d021f7dc5ac9e50)
+++ Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartDataConverterTest.cs (.../ChartDataConverterTest.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,4 +1,25 @@
-using System;
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
using System.Collections.Generic;
using Core.Common.TestUtil;
using Core.Components.Charting.Data;
Index: Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartDataHelperTest.cs
===================================================================
diff -u
--- Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartDataHelperTest.cs (revision 0)
+++ Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartDataHelperTest.cs (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -0,0 +1,93 @@
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using System.Drawing.Drawing2D;
+using Core.Components.OxyPlot.Converter;
+using NUnit.Framework;
+using OxyPlot;
+
+namespace Core.Components.OxyPlot.Test.Converter
+{
+ [TestFixture]
+ public class ChartDataHelperTest
+ {
+ [Test]
+ public void Convert_Solid_ReturnsDefault()
+ {
+ // Call
+ var lineStyle = ChartDataHelper.Convert(DashStyle.Solid);
+
+ // Assert
+ Assert.AreEqual(LineStyle.Solid, lineStyle);
+ }
+
+ [Test]
+ public void Convert_Dash_ReturnsDash()
+ {
+ // Call
+ var lineStyle = ChartDataHelper.Convert(DashStyle.Dash);
+
+ // Assert
+ Assert.AreEqual(LineStyle.Dash, lineStyle);
+ }
+
+ [Test]
+ public void Convert_Dot_ReturnsDot()
+ {
+ // Call
+ var lineStyle = ChartDataHelper.Convert(DashStyle.Dot);
+
+ // Assert
+ Assert.AreEqual(LineStyle.Dot, lineStyle);
+ }
+
+ [Test]
+ public void Convert_DashDot_ReturnsDashDot()
+ {
+ // Call
+ var lineStyle = ChartDataHelper.Convert(DashStyle.DashDot);
+
+ // Assert
+ Assert.AreEqual(LineStyle.DashDot, lineStyle);
+ }
+
+ [Test]
+ public void Convert_DashDotDot_ReturnsDashDotDot()
+ {
+ // Call
+ var lineStyle = ChartDataHelper.Convert(DashStyle.DashDotDot);
+
+ // Assert
+ Assert.AreEqual(LineStyle.DashDotDot, lineStyle);
+ }
+
+ [Test]
+ public void Convert_Custom_ThrowsNotSupportedException()
+ {
+ // Call
+ TestDelegate call = () => ChartDataHelper.Convert(DashStyle.Custom);
+
+ // Assert
+ Assert.Throws(call);
+ }
+ }
+}
\ No newline at end of file
Index: Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartLineDataConverterTest.cs
===================================================================
diff -u -r1dd7affebae1187cb96778e85d021f7dc5ac9e50 -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartLineDataConverterTest.cs (.../ChartLineDataConverterTest.cs) (revision 1dd7affebae1187cb96778e85d021f7dc5ac9e50)
+++ Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartLineDataConverterTest.cs (.../ChartLineDataConverterTest.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,11 +1,36 @@
-using System;
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
+using System.Drawing;
+using System.Drawing.Drawing2D;
using Core.Common.TestUtil;
using Core.Components.Charting.Data;
+using Core.Components.Charting.Styles;
using Core.Components.Charting.TestUtil;
using Core.Components.OxyPlot.Converter;
using NUnit.Framework;
+using OxyPlot;
using OxyPlot.Series;
namespace Core.Components.OxyPlot.Test.Converter
@@ -106,5 +131,96 @@
// Assert
TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, expectedMessage);
}
+
+ [Test]
+ public void Convert_DataName_SeriesTitleSameAsDataName()
+ {
+ // Setup
+ var name = "";
+ var converter = new ChartLineDataConverter();
+ var data = new ChartLineData(new Collection>(), name);
+
+ // Call
+ var series = converter.Convert(data);
+
+ // Assert
+ var lineSeries = ((LineSeries)series[0]);
+ Assert.AreEqual(name, lineSeries.Title);
+ }
+
+ [Test]
+ [TestCase(KnownColor.AliceBlue)]
+ [TestCase(KnownColor.Azure)]
+ [TestCase(KnownColor.Beige)]
+ public void Convert_WithDifferentCoors_AppliesStyleToSeries(KnownColor color)
+ {
+ // Setup
+ var converter = new ChartLineDataConverter();
+ var expectedColor = Color.FromKnownColor(color);
+ var style = new ChartLineStyle(expectedColor, 3, DashStyle.Solid);
+ var data = new ChartLineData(new Collection>(), "test")
+ {
+ Style = style
+ };
+
+ // Call
+ var series = converter.Convert(data);
+
+ // Assert
+ var lineSeries = ((LineSeries)series[0]);
+ AssertColors(style.Color, lineSeries.Color);
+ }
+
+ [Test]
+ [TestCase(1)]
+ [TestCase(5)]
+ [TestCase(7)]
+ public void Convert_WithDifferentWidths_AppliesStyleToSeries(int width)
+ {
+ // Setup
+ var converter = new ChartLineDataConverter();
+ var style = new ChartLineStyle(Color.Red, width, DashStyle.Solid);
+ var data = new ChartLineData(new Collection>(), "test")
+ {
+ Style = style
+ };
+
+ // Call
+ var series = converter.Convert(data);
+
+ // Assert
+ var lineSeries = ((LineSeries)series[0]);
+ Assert.AreEqual(width, lineSeries.StrokeThickness);
+ }
+
+ [Test]
+ [TestCase(DashStyle.Solid, LineStyle.Solid)]
+ [TestCase(DashStyle.Dash, LineStyle.Dash)]
+ [TestCase(DashStyle.Dot, LineStyle.Dot)]
+ [TestCase(DashStyle.DashDot, LineStyle.DashDot)]
+ [TestCase(DashStyle.DashDotDot, LineStyle.DashDotDot)]
+ public void Convert_WidhtDifferentDashStyles_AppliesStyleToSeries(DashStyle dashStyle, LineStyle expectedLineStyle)
+ {
+ // Setup
+ var converter = new ChartLineDataConverter();
+ var style = new ChartLineStyle(Color.Red, 3, dashStyle);
+ var data = new ChartLineData(new Collection>(), "test")
+ {
+ Style = style
+ };
+
+ // Call
+ var series = converter.Convert(data);
+
+ // Assert
+ var lineSeries = ((LineSeries)series[0]);
+ Assert.AreEqual(expectedLineStyle, lineSeries.LineStyle);
+ }
+
+ private void AssertColors(Color color, OxyColor oxyColor)
+ {
+ OxyColor originalColor = OxyColor.FromArgb(color.A, color.R, color.G, color.B);
+ Assert.AreEqual(originalColor, oxyColor);
+ }
}
}
\ No newline at end of file
Index: Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartPointDataConverterTest.cs
===================================================================
diff -u -r1dd7affebae1187cb96778e85d021f7dc5ac9e50 -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartPointDataConverterTest.cs (.../ChartPointDataConverterTest.cs) (revision 1dd7affebae1187cb96778e85d021f7dc5ac9e50)
+++ Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartPointDataConverterTest.cs (.../ChartPointDataConverterTest.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,4 +1,25 @@
-using System;
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Core.Common.TestUtil;
Index: Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartSeriesFactoryTest.cs
===================================================================
diff -u -r1dd7affebae1187cb96778e85d021f7dc5ac9e50 -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartSeriesFactoryTest.cs (.../ChartSeriesFactoryTest.cs) (revision 1dd7affebae1187cb96778e85d021f7dc5ac9e50)
+++ Core/Components/test/Core.Components.OxyPlot.Test/Converter/ChartSeriesFactoryTest.cs (.../ChartSeriesFactoryTest.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,4 +1,25 @@
-using System;
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
Index: Core/Components/test/Core.Components.OxyPlot.Test/Core.Components.OxyPlot.Test.csproj
===================================================================
diff -u -r8aa11a9aa48733a5b5b72c58c71674472825b26c -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.OxyPlot.Test/Core.Components.OxyPlot.Test.csproj (.../Core.Components.OxyPlot.Test.csproj) (revision 8aa11a9aa48733a5b5b72c58c71674472825b26c)
+++ Core/Components/test/Core.Components.OxyPlot.Test/Core.Components.OxyPlot.Test.csproj (.../Core.Components.OxyPlot.Test.csproj) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -48,18 +48,23 @@
+
+
+
+ Copying.Lesser.licenseheader
+
Index: Core/Components/test/Core.Components.OxyPlot.Test/DynamicPlotControllerTest.cs
===================================================================
diff -u -r8d6da66e0a6788518b70d0201f8ca861c5cc8519 -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.OxyPlot.Test/DynamicPlotControllerTest.cs (.../DynamicPlotControllerTest.cs) (revision 8d6da66e0a6788518b70d0201f8ca861c5cc8519)
+++ Core/Components/test/Core.Components.OxyPlot.Test/DynamicPlotControllerTest.cs (.../DynamicPlotControllerTest.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,4 +1,25 @@
-using NUnit.Framework;
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using NUnit.Framework;
using OxyPlot;
namespace Core.Components.OxyPlot.Test
Index: Core/Components/test/Core.Components.OxyPlot.Test/Properties/AssemblyInfo.cs
===================================================================
diff -u -ra70fac40e34e16bed007b1d0d4e437d91c89d0cb -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.OxyPlot.Test/Properties/AssemblyInfo.cs (.../AssemblyInfo.cs) (revision a70fac40e34e16bed007b1d0d4e437d91c89d0cb)
+++ Core/Components/test/Core.Components.OxyPlot.Test/Properties/AssemblyInfo.cs (.../AssemblyInfo.cs) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,4 +1,25 @@
-using System.Reflection;
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Core.Components.OxyPlot.Test")]
Index: Core/Components/test/Core.Components.OxyPlot.Test/packages.config
===================================================================
diff -u -rdaaa148db691a71c042fcdd3ca039cf13c59217c -r0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21
--- Core/Components/test/Core.Components.OxyPlot.Test/packages.config (.../packages.config) (revision daaa148db691a71c042fcdd3ca039cf13c59217c)
+++ Core/Components/test/Core.Components.OxyPlot.Test/packages.config (.../packages.config) (revision 0b76c9841bdeef5c3b9fa1ba0d6cb98a63b90c21)
@@ -1,4 +1,27 @@
+
+