From a7eccef735c7c38058f47a5068f97d13018f6680 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: 4f847644667832a1fc8a2ae76046457dae0c8f79 Former-commit-id: 07387fa030f43f4d710b8ecd5954d282052af105 Former-commit-id: c9166d003cf945978bf3e7a112bbef00b6eefd03 --- .../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 f7a94845a2..b01589d57e 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 f8d56fd545..aa20d9b51a 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 266c399ff3..29c4652181 100644 --- a/src/ImageProcessor.UnitTests/packages.config +++ b/src/ImageProcessor.UnitTests/packages.config @@ -1,5 +1,5 @@  - + \ No newline at end of file