Browse Source

Fix broken unit test

Former-commit-id: cec3376d9e1ce5ad325ff6ef2ff83a560067adcb
Former-commit-id: 19a088a45ecae33746ff6e11f44e0625c8483f9e
Former-commit-id: 0204e92f935e2add83ceaa005e3047a008bd1fc1
af/merge-core
James South 11 years ago
parent
commit
3fabfb540e
  1. 10
      src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj
  2. 2
      src/ImageProcessor.UnitTests/Imaging/Helpers/ImageMathsUnitTests.cs
  3. 2
      src/ImageProcessor.UnitTests/packages.config

10
src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj

@ -37,11 +37,13 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="FluentAssertions">
<HintPath>..\packages\FluentAssertions.3.2.1\lib\net45\FluentAssertions.dll</HintPath>
<Reference Include="FluentAssertions, Version=3.3.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\FluentAssertions.3.3.0\lib\net45\FluentAssertions.dll</HintPath>
</Reference>
<Reference Include="FluentAssertions.Core">
<HintPath>..\packages\FluentAssertions.3.2.1\lib\net45\FluentAssertions.Core.dll</HintPath>
<Reference Include="FluentAssertions.Core, Version=3.3.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\FluentAssertions.3.3.0\lib\net45\FluentAssertions.Core.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Drawing" />

2
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);

2
src/ImageProcessor.UnitTests/packages.config

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="FluentAssertions" version="3.2.1" targetFramework="net45" />
<package id="FluentAssertions" version="3.3.0" targetFramework="net45" />
<package id="NUnit" version="2.6.3" targetFramework="net451" />
</packages>
Loading…
Cancel
Save