From 032ccbf7751e9eeb742d1012fdef68cd60758406 Mon Sep 17 00:00:00 2001 From: Anders Gustafsson Date: Fri, 28 Nov 2014 09:56:45 +0100 Subject: [PATCH] Refactored unit tests to NUnit All tests have been convered to NUnit style NUnit is referenced as a NuGet package --- .../AForge.Imaging.Tests.csproj | 10 +- .../AForge.Imaging.Tests/IntegralImageTest.cs | 110 ++++----- .../UnmanagedImageTest.cs | 200 ++++++++-------- .../AForge.Imaging.Tests/packages.config | 4 + .../AForge.Math.Tests.csproj | 10 +- .../ClosePointsMergingOptimizerTest.cs | 16 +- .../Geometry/FlatAnglesOptimizerTest.cs | 20 +- .../Geometry/GeometryToolsTest.cs | 36 +-- .../Geometry/GrahamConvexHullTest.cs | 8 +- .../Geometry/LineSegmentTest.cs | 90 ++++---- .../LineStraighteningOptimizerTest.cs | 22 +- .../AForge.Math.Tests/Geometry/LineTest.cs | 92 ++++---- .../Geometry/ShapeOptimizerTestBase.cs | 2 +- .../Geometry/SimpleShapeCheckerTest.cs | 46 ++-- Unit Tests/AForge.Math.Tests/Matrix3x3Test.cs | 148 ++++++------ Unit Tests/AForge.Math.Tests/Matrix4x4Test.cs | 128 +++++----- .../AForge.Math.Tests/Metrics/MetricsTest.cs | 62 ++--- .../AForge.Math.Tests/StatisticsTest.cs | 4 +- Unit Tests/AForge.Math.Tests/ToolsTest.cs | 36 +-- Unit Tests/AForge.Math.Tests/Vector3Test.cs | 218 +++++++++--------- Unit Tests/AForge.Math.Tests/packages.config | 4 + Unit Tests/AForge.Tests/AForge.Tests.csproj | 10 +- Unit Tests/AForge.Tests/IntPointTest.cs | 40 ++-- Unit Tests/AForge.Tests/IntRangeTest.cs | 43 ++-- Unit Tests/AForge.Tests/PointTest.cs | 59 +++-- Unit Tests/AForge.Tests/RangeTest.cs | 47 ++-- Unit Tests/AForge.Tests/packages.config | 4 + Unit Tests/packages/repositories.config | 6 + 28 files changed, 733 insertions(+), 742 deletions(-) create mode 100644 Unit Tests/AForge.Imaging.Tests/packages.config create mode 100644 Unit Tests/AForge.Math.Tests/packages.config create mode 100644 Unit Tests/AForge.Tests/packages.config create mode 100644 Unit Tests/packages/repositories.config diff --git a/Unit Tests/AForge.Imaging.Tests/AForge.Imaging.Tests.csproj b/Unit Tests/AForge.Imaging.Tests/AForge.Imaging.Tests.csproj index a0a94eb4..894de24b 100644 --- a/Unit Tests/AForge.Imaging.Tests/AForge.Imaging.Tests.csproj +++ b/Unit Tests/AForge.Imaging.Tests/AForge.Imaging.Tests.csproj @@ -58,11 +58,8 @@ False ..\..\Release\AForge.Imaging.dll - - False - - - False + + ..\packages\NUnit.2.6.3\lib\nunit.framework.dll @@ -99,6 +96,9 @@ true + + +