Browse Source

Fix broken unit test

Former-commit-id: 4f847644667832a1fc8a2ae76046457dae0c8f79
Former-commit-id: 07387fa030f43f4d710b8ecd5954d282052af105
Former-commit-id: c9166d003cf945978bf3e7a112bbef00b6eefd03
af/merge-core
James South 11 years ago
parent
commit
a7eccef735
  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