From 3fabfb540eb769451ba451a52c28ae812cf0e7d2 Mon Sep 17 00:00:00 2001 From: James South Date: Sat, 28 Mar 2015 21:07:24 +0000 Subject: [PATCH] Fix broken unit test Former-commit-id: cec3376d9e1ce5ad325ff6ef2ff83a560067adcb Former-commit-id: 19a088a45ecae33746ff6e11f44e0625c8483f9e Former-commit-id: 0204e92f935e2add83ceaa005e3047a008bd1fc1 --- .../ImageProcessor.UnitTests.csproj | 10 ++++++---- .../Imaging/Helpers/ImageMathsUnitTests.cs | 2 +- src/ImageProcessor.UnitTests/packages.config | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj b/src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj index f7a94845a..b01589d57 100644 --- a/src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj +++ b/src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj @@ -37,11 +37,13 @@ false - - ..\packages\FluentAssertions.3.2.1\lib\net45\FluentAssertions.dll + + False + ..\packages\FluentAssertions.3.3.0\lib\net45\FluentAssertions.dll - - ..\packages\FluentAssertions.3.2.1\lib\net45\FluentAssertions.Core.dll + + False + ..\packages\FluentAssertions.3.3.0\lib\net45\FluentAssertions.Core.dll diff --git a/src/ImageProcessor.UnitTests/Imaging/Helpers/ImageMathsUnitTests.cs b/src/ImageProcessor.UnitTests/Imaging/Helpers/ImageMathsUnitTests.cs index f8d56fd54..aa20d9b51 100644 --- a/src/ImageProcessor.UnitTests/Imaging/Helpers/ImageMathsUnitTests.cs +++ b/src/ImageProcessor.UnitTests/Imaging/Helpers/ImageMathsUnitTests.cs @@ -45,7 +45,7 @@ [TestCase(200, 100, 45, 2.12f)] [TestCase(600, 450, 20, 1.39f)] [TestCase(600, 450, 45, 1.64f)] - [TestCase(100, 200, -45, 1.22f)] + [TestCase(100, 200, -45, 2.12f)] public void RotationZoomIsCalculated(int imageWidth, int imageHeight, float angle, float expected) { float result = ImageMaths.ZoomAfterRotation(imageWidth, imageHeight, angle); diff --git a/src/ImageProcessor.UnitTests/packages.config b/src/ImageProcessor.UnitTests/packages.config index 266c399ff..29c465218 100644 --- a/src/ImageProcessor.UnitTests/packages.config +++ b/src/ImageProcessor.UnitTests/packages.config @@ -1,5 +1,5 @@  - + \ No newline at end of file