From 4362cdd3448679dd700fe7ba3df4c1f625e8847d Mon Sep 17 00:00:00 2001 From: Thomas Broust Date: Wed, 25 Jun 2014 17:48:47 +0200 Subject: [PATCH 1/6] New unit tests project using NUnit instead of VS tests Former-commit-id: 883e26cc77408ffe4ff9bbe2cee94963256050e2 --- .gitignore | 3 + .../ImageProcessor.Tests.csproj | 112 ------------------ .../Properties/AssemblyInfo.cs | 36 ------ src/ImageProcessor.Tests/app.config | 15 --- .../ImageProcessor.UnitTests.csproj | 52 ++++++++ .../RegularExpressionUnitTests.cs | 47 +++----- src/ImageProcessor.UnitTests/packages.config | 4 + src/packages/repositories.config | 13 +- 8 files changed, 83 insertions(+), 199 deletions(-) delete mode 100644 src/ImageProcessor.Tests/ImageProcessor.Tests.csproj delete mode 100644 src/ImageProcessor.Tests/Properties/AssemblyInfo.cs delete mode 100644 src/ImageProcessor.Tests/app.config create mode 100644 src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj rename src/{ImageProcessor.Tests => ImageProcessor.UnitTests}/RegularExpressionUnitTests.cs (86%) create mode 100644 src/ImageProcessor.UnitTests/packages.config diff --git a/.gitignore b/.gitignore index 6b6928926..2fc43e4a1 100644 --- a/.gitignore +++ b/.gitignore @@ -64,6 +64,9 @@ local.properties .builds **/*.dotCover +# Xamarin +*.userprefs + ## TODO: If you have NuGet Package Restore enabled, uncomment this packages/ diff --git a/src/ImageProcessor.Tests/ImageProcessor.Tests.csproj b/src/ImageProcessor.Tests/ImageProcessor.Tests.csproj deleted file mode 100644 index 3d3e5c241..000000000 --- a/src/ImageProcessor.Tests/ImageProcessor.Tests.csproj +++ /dev/null @@ -1,112 +0,0 @@ - - - - Debug - AnyCPU - {39911A38-CA06-413C-80AA-39EF60CE984F} - Library - Properties - ImageProcessor.Tests - ImageProcessor.Tests - v4.5 - 512 - {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - 10.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages - False - UnitTest - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - true - bin\x86\Debug\ - DEBUG;TRACE - full - x86 - prompt - MinimumRecommendedRules.ruleset - - - bin\x86\Release\ - TRACE - true - pdbonly - AnyCPU - prompt - MinimumRecommendedRules.ruleset - - - - - - - - - - - - - - - - - - - - - - - - - {3b5dd734-fb7a-487d-8ce6-55e7af9aea7e} - ImageProcessor - - - - - - - - - - False - - - False - - - False - - - False - - - - - - - - \ No newline at end of file diff --git a/src/ImageProcessor.Tests/Properties/AssemblyInfo.cs b/src/ImageProcessor.Tests/Properties/AssemblyInfo.cs deleted file mode 100644 index e2341f344..000000000 --- a/src/ImageProcessor.Tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("ImageProcessor.Tests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("ImageProcessor.Tests")] -[assembly: AssemblyCopyright("Copyright © 2013")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("ab617b65-7259-4dc5-9dad-81a7c6537a4f")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/ImageProcessor.Tests/app.config b/src/ImageProcessor.Tests/app.config deleted file mode 100644 index 7d285c859..000000000 --- a/src/ImageProcessor.Tests/app.config +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj b/src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj new file mode 100644 index 000000000..5552927ec --- /dev/null +++ b/src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj @@ -0,0 +1,52 @@ + + + + Debug + AnyCPU + {03CA9055-F997-428C-BF28-F50F991777C6} + Library + ImageProcessor.UnitTests + ImageProcessor.UnitTests + Client + + + true + full + false + bin\Debug + DEBUG; + prompt + 4 + false + + + full + true + bin\Release + prompt + 4 + false + + + + + + ..\packages\NUnit.2.6.3\lib\nunit.framework.dll + + + + + + + + + + + {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E} + ImageProcessor + + + + + + \ No newline at end of file diff --git a/src/ImageProcessor.Tests/RegularExpressionUnitTests.cs b/src/ImageProcessor.UnitTests/RegularExpressionUnitTests.cs similarity index 86% rename from src/ImageProcessor.Tests/RegularExpressionUnitTests.cs rename to src/ImageProcessor.UnitTests/RegularExpressionUnitTests.cs index 84e1d6c5b..280af264e 100644 --- a/src/ImageProcessor.Tests/RegularExpressionUnitTests.cs +++ b/src/ImageProcessor.UnitTests/RegularExpressionUnitTests.cs @@ -1,31 +1,18 @@ -// ----------------------------------------------------------------------- -// -// Copyright (c) James South. -// Licensed under the Apache License, Version 2.0. -// -// ----------------------------------------------------------------------- -namespace ImageProcessor.Tests +namespace ImageProcessor.UnitTests { - #region Using + using System; using System.Drawing; using ImageProcessor.Imaging; using ImageProcessor.Processors; - using Microsoft.VisualStudio.TestTools.UnitTesting; - #endregion - - /// - /// The regular expression unit tests. - /// This is a work in progress. YAWN! - /// - [TestClass] + using NUnit.Framework; + + [TestFixture ()] public class RegularExpressionUnitTests { - #region Regular Expression Tests - /// /// The alpha regex unit test. /// - [TestMethod] + [Test ()] public void TestAlphaRegex() { const string Querystring = "alpha=56"; @@ -42,7 +29,7 @@ namespace ImageProcessor.Tests /// /// The brightness regex unit test. /// - [TestMethod] + [Test ()] public void TestBrightnessRegex() { const string Querystring = "brightness=56"; @@ -59,7 +46,7 @@ namespace ImageProcessor.Tests /// /// The contrast regex unit test. /// - [TestMethod] + [Test ()] public void TestContrastRegex() { const string Querystring = "contrast=56"; @@ -76,7 +63,7 @@ namespace ImageProcessor.Tests /// /// The rotate regex unit test. /// - [TestMethod] + [Test ()] public void TestCropRegex() { const string Querystring = "crop=0,0,150,300"; @@ -92,7 +79,7 @@ namespace ImageProcessor.Tests /// /// The filter regex unit test. /// - [TestMethod] + [Test ()] public void TestFilterRegex() { // Should really write more for the other filters. @@ -110,7 +97,7 @@ namespace ImageProcessor.Tests /// /// The format regex unit test. /// - [TestMethod] + [Test ()] public void TestFormatRegex() { const string Querystring = "format=gif"; @@ -127,7 +114,7 @@ namespace ImageProcessor.Tests /// /// The quality regex unit test. /// - [TestMethod] + [Test ()] public void TestQualityRegex() { const string Querystring = "quality=56"; @@ -144,7 +131,7 @@ namespace ImageProcessor.Tests /// /// The resize regex unit test. /// - [TestMethod] + [Test ()] public void TestResizeRegex() { const string Querystring = "width=300"; @@ -161,7 +148,7 @@ namespace ImageProcessor.Tests /// /// The rotate regex unit test. /// - [TestMethod] + [Test ()] public void TestRotateRegex() { const string Querystring = "rotate=270"; @@ -178,7 +165,7 @@ namespace ImageProcessor.Tests /// /// The rounded corners regex unit test. /// - [TestMethod] + [Test ()] public void TestRoundedCornersRegex() { const string Querystring = "roundedcorners=30"; @@ -195,7 +182,7 @@ namespace ImageProcessor.Tests /// /// The rounded corners regex unit test. /// - [TestMethod] + [Test ()] public void TestTintRegex() { const string HexQuerystring = "tint=6aa6cc"; @@ -213,6 +200,6 @@ namespace ImageProcessor.Tests Color actualRgba = tint.DynamicParameter; Assert.AreEqual(expectedRgba, actualRgba); } - #endregion } } + diff --git a/src/ImageProcessor.UnitTests/packages.config b/src/ImageProcessor.UnitTests/packages.config new file mode 100644 index 000000000..5a3253fcb --- /dev/null +++ b/src/ImageProcessor.UnitTests/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/packages/repositories.config b/src/packages/repositories.config index 458c0f4aa..73ccce20c 100644 --- a/src/packages/repositories.config +++ b/src/packages/repositories.config @@ -1,7 +1,8 @@ - - - - - - + + + + + + + \ No newline at end of file From b9c870862afc96da228f0af672bb2078a3ae1f3b Mon Sep 17 00:00:00 2001 From: Thomas Broust Date: Wed, 25 Jun 2014 17:48:47 +0200 Subject: [PATCH 2/6] New unit tests project using NUnit instead of VS tests Former-commit-id: b825ded390a05083cd92ffa07a6905ee09e30c62 --- .gitignore | 3 + .../ImageProcessor.Tests.csproj | 112 ------------ .../Properties/AssemblyInfo.cs | 36 ---- src/ImageProcessor.Tests/app.config | 15 -- .../ImageProcessor.UnitTests.csproj | 52 ++++++ .../RegularExpressionUnitTests.cs | 47 ++--- src/ImageProcessor.UnitTests/packages.config | 4 + src/ImageProcessor.sln | 167 +++++++++--------- src/packages/repositories.config | 13 +- 9 files changed, 169 insertions(+), 280 deletions(-) delete mode 100644 src/ImageProcessor.Tests/ImageProcessor.Tests.csproj delete mode 100644 src/ImageProcessor.Tests/Properties/AssemblyInfo.cs delete mode 100644 src/ImageProcessor.Tests/app.config create mode 100644 src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj rename src/{ImageProcessor.Tests => ImageProcessor.UnitTests}/RegularExpressionUnitTests.cs (86%) create mode 100644 src/ImageProcessor.UnitTests/packages.config diff --git a/.gitignore b/.gitignore index 6b6928926..2fc43e4a1 100644 --- a/.gitignore +++ b/.gitignore @@ -64,6 +64,9 @@ local.properties .builds **/*.dotCover +# Xamarin +*.userprefs + ## TODO: If you have NuGet Package Restore enabled, uncomment this packages/ diff --git a/src/ImageProcessor.Tests/ImageProcessor.Tests.csproj b/src/ImageProcessor.Tests/ImageProcessor.Tests.csproj deleted file mode 100644 index 3d3e5c241..000000000 --- a/src/ImageProcessor.Tests/ImageProcessor.Tests.csproj +++ /dev/null @@ -1,112 +0,0 @@ - - - - Debug - AnyCPU - {39911A38-CA06-413C-80AA-39EF60CE984F} - Library - Properties - ImageProcessor.Tests - ImageProcessor.Tests - v4.5 - 512 - {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - 10.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages - False - UnitTest - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - true - bin\x86\Debug\ - DEBUG;TRACE - full - x86 - prompt - MinimumRecommendedRules.ruleset - - - bin\x86\Release\ - TRACE - true - pdbonly - AnyCPU - prompt - MinimumRecommendedRules.ruleset - - - - - - - - - - - - - - - - - - - - - - - - - {3b5dd734-fb7a-487d-8ce6-55e7af9aea7e} - ImageProcessor - - - - - - - - - - False - - - False - - - False - - - False - - - - - - - - \ No newline at end of file diff --git a/src/ImageProcessor.Tests/Properties/AssemblyInfo.cs b/src/ImageProcessor.Tests/Properties/AssemblyInfo.cs deleted file mode 100644 index e2341f344..000000000 --- a/src/ImageProcessor.Tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("ImageProcessor.Tests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("ImageProcessor.Tests")] -[assembly: AssemblyCopyright("Copyright © 2013")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("ab617b65-7259-4dc5-9dad-81a7c6537a4f")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/ImageProcessor.Tests/app.config b/src/ImageProcessor.Tests/app.config deleted file mode 100644 index 7d285c859..000000000 --- a/src/ImageProcessor.Tests/app.config +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj b/src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj new file mode 100644 index 000000000..5552927ec --- /dev/null +++ b/src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj @@ -0,0 +1,52 @@ + + + + Debug + AnyCPU + {03CA9055-F997-428C-BF28-F50F991777C6} + Library + ImageProcessor.UnitTests + ImageProcessor.UnitTests + Client + + + true + full + false + bin\Debug + DEBUG; + prompt + 4 + false + + + full + true + bin\Release + prompt + 4 + false + + + + + + ..\packages\NUnit.2.6.3\lib\nunit.framework.dll + + + + + + + + + + + {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E} + ImageProcessor + + + + + + \ No newline at end of file diff --git a/src/ImageProcessor.Tests/RegularExpressionUnitTests.cs b/src/ImageProcessor.UnitTests/RegularExpressionUnitTests.cs similarity index 86% rename from src/ImageProcessor.Tests/RegularExpressionUnitTests.cs rename to src/ImageProcessor.UnitTests/RegularExpressionUnitTests.cs index 84e1d6c5b..280af264e 100644 --- a/src/ImageProcessor.Tests/RegularExpressionUnitTests.cs +++ b/src/ImageProcessor.UnitTests/RegularExpressionUnitTests.cs @@ -1,31 +1,18 @@ -// ----------------------------------------------------------------------- -// -// Copyright (c) James South. -// Licensed under the Apache License, Version 2.0. -// -// ----------------------------------------------------------------------- -namespace ImageProcessor.Tests +namespace ImageProcessor.UnitTests { - #region Using + using System; using System.Drawing; using ImageProcessor.Imaging; using ImageProcessor.Processors; - using Microsoft.VisualStudio.TestTools.UnitTesting; - #endregion - - /// - /// The regular expression unit tests. - /// This is a work in progress. YAWN! - /// - [TestClass] + using NUnit.Framework; + + [TestFixture ()] public class RegularExpressionUnitTests { - #region Regular Expression Tests - /// /// The alpha regex unit test. /// - [TestMethod] + [Test ()] public void TestAlphaRegex() { const string Querystring = "alpha=56"; @@ -42,7 +29,7 @@ namespace ImageProcessor.Tests /// /// The brightness regex unit test. /// - [TestMethod] + [Test ()] public void TestBrightnessRegex() { const string Querystring = "brightness=56"; @@ -59,7 +46,7 @@ namespace ImageProcessor.Tests /// /// The contrast regex unit test. /// - [TestMethod] + [Test ()] public void TestContrastRegex() { const string Querystring = "contrast=56"; @@ -76,7 +63,7 @@ namespace ImageProcessor.Tests /// /// The rotate regex unit test. /// - [TestMethod] + [Test ()] public void TestCropRegex() { const string Querystring = "crop=0,0,150,300"; @@ -92,7 +79,7 @@ namespace ImageProcessor.Tests /// /// The filter regex unit test. /// - [TestMethod] + [Test ()] public void TestFilterRegex() { // Should really write more for the other filters. @@ -110,7 +97,7 @@ namespace ImageProcessor.Tests /// /// The format regex unit test. /// - [TestMethod] + [Test ()] public void TestFormatRegex() { const string Querystring = "format=gif"; @@ -127,7 +114,7 @@ namespace ImageProcessor.Tests /// /// The quality regex unit test. /// - [TestMethod] + [Test ()] public void TestQualityRegex() { const string Querystring = "quality=56"; @@ -144,7 +131,7 @@ namespace ImageProcessor.Tests /// /// The resize regex unit test. /// - [TestMethod] + [Test ()] public void TestResizeRegex() { const string Querystring = "width=300"; @@ -161,7 +148,7 @@ namespace ImageProcessor.Tests /// /// The rotate regex unit test. /// - [TestMethod] + [Test ()] public void TestRotateRegex() { const string Querystring = "rotate=270"; @@ -178,7 +165,7 @@ namespace ImageProcessor.Tests /// /// The rounded corners regex unit test. /// - [TestMethod] + [Test ()] public void TestRoundedCornersRegex() { const string Querystring = "roundedcorners=30"; @@ -195,7 +182,7 @@ namespace ImageProcessor.Tests /// /// The rounded corners regex unit test. /// - [TestMethod] + [Test ()] public void TestTintRegex() { const string HexQuerystring = "tint=6aa6cc"; @@ -213,6 +200,6 @@ namespace ImageProcessor.Tests Color actualRgba = tint.DynamicParameter; Assert.AreEqual(expectedRgba, actualRgba); } - #endregion } } + diff --git a/src/ImageProcessor.UnitTests/packages.config b/src/ImageProcessor.UnitTests/packages.config new file mode 100644 index 000000000..5a3253fcb --- /dev/null +++ b/src/ImageProcessor.UnitTests/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/ImageProcessor.sln b/src/ImageProcessor.sln index a8060449d..186a446c7 100644 --- a/src/ImageProcessor.sln +++ b/src/ImageProcessor.sln @@ -1,6 +1,6 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2013 +# Visual Studio 2012 VisualStudioVersion = 12.0.30110.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{C427A497-74DC-49B1-8420-D6E68354F29B}" @@ -18,8 +18,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{1E656C EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImageProcessor", "ImageProcessor\ImageProcessor.csproj", "{3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImageProcessor.Tests", "ImageProcessor.Tests\ImageProcessor.Tests.csproj", "{39911A38-CA06-413C-80AA-39EF60CE984F}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Web.Tests", "Web.Test\Web.Tests.csproj", "{23CE0FC0-9E59-4C93-A604-A4A98A6284D1}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test_Website_MVC_NET4", "TestWebsites\NET4\Test_Website_MVC_NET4.csproj", "{30327C08-7574-4D7E-AC95-6A58753C6855}" @@ -34,6 +32,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test_Website_Webforms_NET45 EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImageProcessorConsole", "ImageProcessorConsole\ImageProcessorConsole.csproj", "{7BF5274B-56A7-4B62-8105-E9BDF25BAFE7}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImageProcessor.UnitTests", "ImageProcessor.UnitTests\ImageProcessor.UnitTests.csproj", "{03CA9055-F997-428C-BF28-F50F991777C6}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution All|Any CPU = All|Any CPU @@ -47,39 +47,24 @@ Global Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.All|Any CPU.ActiveCfg = All|Any CPU - {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.All|Any CPU.Build.0 = All|Any CPU - {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.All|Mixed Platforms.ActiveCfg = All|Any CPU - {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.All|Mixed Platforms.Build.0 = All|Any CPU - {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.All|x86.ActiveCfg = All|Any CPU - {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.Debug|x86.ActiveCfg = Debug|Any CPU - {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.Release|Any CPU.Build.0 = Release|Any CPU - {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.Release|x86.ActiveCfg = Release|Any CPU - {39911A38-CA06-413C-80AA-39EF60CE984F}.All|Any CPU.ActiveCfg = Release|Any CPU - {39911A38-CA06-413C-80AA-39EF60CE984F}.All|Any CPU.Build.0 = Release|Any CPU - {39911A38-CA06-413C-80AA-39EF60CE984F}.All|Mixed Platforms.ActiveCfg = Release|x86 - {39911A38-CA06-413C-80AA-39EF60CE984F}.All|Mixed Platforms.Build.0 = Release|x86 - {39911A38-CA06-413C-80AA-39EF60CE984F}.All|x86.ActiveCfg = Release|x86 - {39911A38-CA06-413C-80AA-39EF60CE984F}.All|x86.Build.0 = Release|x86 - {39911A38-CA06-413C-80AA-39EF60CE984F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {39911A38-CA06-413C-80AA-39EF60CE984F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {39911A38-CA06-413C-80AA-39EF60CE984F}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 - {39911A38-CA06-413C-80AA-39EF60CE984F}.Debug|Mixed Platforms.Build.0 = Debug|x86 - {39911A38-CA06-413C-80AA-39EF60CE984F}.Debug|x86.ActiveCfg = Debug|x86 - {39911A38-CA06-413C-80AA-39EF60CE984F}.Debug|x86.Build.0 = Debug|x86 - {39911A38-CA06-413C-80AA-39EF60CE984F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {39911A38-CA06-413C-80AA-39EF60CE984F}.Release|Any CPU.Build.0 = Release|Any CPU - {39911A38-CA06-413C-80AA-39EF60CE984F}.Release|Mixed Platforms.ActiveCfg = Release|x86 - {39911A38-CA06-413C-80AA-39EF60CE984F}.Release|Mixed Platforms.Build.0 = Release|x86 - {39911A38-CA06-413C-80AA-39EF60CE984F}.Release|x86.ActiveCfg = Release|x86 - {39911A38-CA06-413C-80AA-39EF60CE984F}.Release|x86.Build.0 = Release|x86 + {03CA9055-F997-428C-BF28-F50F991777C6}.All|Any CPU.ActiveCfg = Debug|Any CPU + {03CA9055-F997-428C-BF28-F50F991777C6}.All|Any CPU.Build.0 = Debug|Any CPU + {03CA9055-F997-428C-BF28-F50F991777C6}.All|Mixed Platforms.ActiveCfg = Debug|Any CPU + {03CA9055-F997-428C-BF28-F50F991777C6}.All|Mixed Platforms.Build.0 = Debug|Any CPU + {03CA9055-F997-428C-BF28-F50F991777C6}.All|x86.ActiveCfg = Debug|Any CPU + {03CA9055-F997-428C-BF28-F50F991777C6}.All|x86.Build.0 = Debug|Any CPU + {03CA9055-F997-428C-BF28-F50F991777C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {03CA9055-F997-428C-BF28-F50F991777C6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {03CA9055-F997-428C-BF28-F50F991777C6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {03CA9055-F997-428C-BF28-F50F991777C6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {03CA9055-F997-428C-BF28-F50F991777C6}.Debug|x86.ActiveCfg = Debug|Any CPU + {03CA9055-F997-428C-BF28-F50F991777C6}.Debug|x86.Build.0 = Debug|Any CPU + {03CA9055-F997-428C-BF28-F50F991777C6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {03CA9055-F997-428C-BF28-F50F991777C6}.Release|Any CPU.Build.0 = Release|Any CPU + {03CA9055-F997-428C-BF28-F50F991777C6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {03CA9055-F997-428C-BF28-F50F991777C6}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {03CA9055-F997-428C-BF28-F50F991777C6}.Release|x86.ActiveCfg = Release|Any CPU + {03CA9055-F997-428C-BF28-F50F991777C6}.Release|x86.Build.0 = Release|Any CPU {23CE0FC0-9E59-4C93-A604-A4A98A6284D1}.All|Any CPU.ActiveCfg = Release|Any CPU {23CE0FC0-9E59-4C93-A604-A4A98A6284D1}.All|Any CPU.Build.0 = Release|Any CPU {23CE0FC0-9E59-4C93-A604-A4A98A6284D1}.All|Mixed Platforms.ActiveCfg = Release|Any CPU @@ -112,21 +97,21 @@ Global {30327C08-7574-4D7E-AC95-6A58753C6855}.Release|Mixed Platforms.Build.0 = Release|x86 {30327C08-7574-4D7E-AC95-6A58753C6855}.Release|x86.ActiveCfg = Release|x86 {30327C08-7574-4D7E-AC95-6A58753C6855}.Release|x86.Build.0 = Release|x86 - {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.All|Any CPU.ActiveCfg = Release|Any CPU - {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.All|Any CPU.Build.0 = Release|Any CPU - {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.All|Mixed Platforms.ActiveCfg = Release|Any CPU - {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.All|Mixed Platforms.Build.0 = Release|Any CPU - {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.All|x86.ActiveCfg = Release|Any CPU - {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.Debug|x86.ActiveCfg = Debug|Any CPU - {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.Release|Any CPU.Build.0 = Release|Any CPU - {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.Release|x86.ActiveCfg = Release|Any CPU + {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.All|Any CPU.ActiveCfg = All|Any CPU + {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.All|Any CPU.Build.0 = All|Any CPU + {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.All|Mixed Platforms.ActiveCfg = All|Any CPU + {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.All|Mixed Platforms.Build.0 = All|Any CPU + {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.All|x86.ActiveCfg = All|Any CPU + {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.Debug|x86.ActiveCfg = Debug|Any CPU + {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.Release|Any CPU.Build.0 = Release|Any CPU + {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}.Release|x86.ActiveCfg = Release|Any CPU {4F7050F2-465F-4E10-8DB2-2FB97AC6AA43}.All|Any CPU.ActiveCfg = All|Any CPU {4F7050F2-465F-4E10-8DB2-2FB97AC6AA43}.All|Any CPU.Build.0 = All|Any CPU {4F7050F2-465F-4E10-8DB2-2FB97AC6AA43}.All|Mixed Platforms.ActiveCfg = All|Any CPU @@ -142,36 +127,6 @@ Global {4F7050F2-465F-4E10-8DB2-2FB97AC6AA43}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {4F7050F2-465F-4E10-8DB2-2FB97AC6AA43}.Release|Mixed Platforms.Build.0 = Release|Any CPU {4F7050F2-465F-4E10-8DB2-2FB97AC6AA43}.Release|x86.ActiveCfg = Release|Any CPU - {D011A778-59C8-4BFA-A770-C350216BF161}.All|Any CPU.ActiveCfg = Release|Any CPU - {D011A778-59C8-4BFA-A770-C350216BF161}.All|Any CPU.Build.0 = Release|Any CPU - {D011A778-59C8-4BFA-A770-C350216BF161}.All|Mixed Platforms.ActiveCfg = Release|Any CPU - {D011A778-59C8-4BFA-A770-C350216BF161}.All|Mixed Platforms.Build.0 = Release|Any CPU - {D011A778-59C8-4BFA-A770-C350216BF161}.All|x86.ActiveCfg = Release|Any CPU - {D011A778-59C8-4BFA-A770-C350216BF161}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D011A778-59C8-4BFA-A770-C350216BF161}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D011A778-59C8-4BFA-A770-C350216BF161}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {D011A778-59C8-4BFA-A770-C350216BF161}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {D011A778-59C8-4BFA-A770-C350216BF161}.Debug|x86.ActiveCfg = Debug|Any CPU - {D011A778-59C8-4BFA-A770-C350216BF161}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D011A778-59C8-4BFA-A770-C350216BF161}.Release|Any CPU.Build.0 = Release|Any CPU - {D011A778-59C8-4BFA-A770-C350216BF161}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {D011A778-59C8-4BFA-A770-C350216BF161}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {D011A778-59C8-4BFA-A770-C350216BF161}.Release|x86.ActiveCfg = Release|Any CPU - {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.All|Any CPU.ActiveCfg = Release|Any CPU - {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.All|Any CPU.Build.0 = Release|Any CPU - {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.All|Mixed Platforms.ActiveCfg = Release|Any CPU - {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.All|Mixed Platforms.Build.0 = Release|Any CPU - {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.All|x86.ActiveCfg = Release|Any CPU - {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.Debug|x86.ActiveCfg = Debug|Any CPU - {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.Release|Any CPU.Build.0 = Release|Any CPU - {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.Release|x86.ActiveCfg = Release|Any CPU {7BF5274B-56A7-4B62-8105-E9BDF25BAFE7}.All|Any CPU.ActiveCfg = Release|Any CPU {7BF5274B-56A7-4B62-8105-E9BDF25BAFE7}.All|Any CPU.Build.0 = Release|Any CPU {7BF5274B-56A7-4B62-8105-E9BDF25BAFE7}.All|Mixed Platforms.ActiveCfg = Release|Any CPU @@ -187,6 +142,56 @@ Global {7BF5274B-56A7-4B62-8105-E9BDF25BAFE7}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {7BF5274B-56A7-4B62-8105-E9BDF25BAFE7}.Release|Mixed Platforms.Build.0 = Release|Any CPU {7BF5274B-56A7-4B62-8105-E9BDF25BAFE7}.Release|x86.ActiveCfg = Release|Any CPU + {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.All|Any CPU.ActiveCfg = Release|Any CPU + {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.All|Any CPU.Build.0 = Release|Any CPU + {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.All|Mixed Platforms.ActiveCfg = Release|Any CPU + {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.All|Mixed Platforms.Build.0 = Release|Any CPU + {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.All|x86.ActiveCfg = Release|Any CPU + {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.Debug|x86.ActiveCfg = Debug|Any CPU + {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.Release|Any CPU.Build.0 = Release|Any CPU + {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {8DA47D8C-DB1A-4D82-843F-896AB9C3B3D2}.Release|x86.ActiveCfg = Release|Any CPU + {D011A778-59C8-4BFA-A770-C350216BF161}.All|Any CPU.ActiveCfg = Release|Any CPU + {D011A778-59C8-4BFA-A770-C350216BF161}.All|Any CPU.Build.0 = Release|Any CPU + {D011A778-59C8-4BFA-A770-C350216BF161}.All|Mixed Platforms.ActiveCfg = Release|Any CPU + {D011A778-59C8-4BFA-A770-C350216BF161}.All|Mixed Platforms.Build.0 = Release|Any CPU + {D011A778-59C8-4BFA-A770-C350216BF161}.All|x86.ActiveCfg = Release|Any CPU + {D011A778-59C8-4BFA-A770-C350216BF161}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D011A778-59C8-4BFA-A770-C350216BF161}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D011A778-59C8-4BFA-A770-C350216BF161}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {D011A778-59C8-4BFA-A770-C350216BF161}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {D011A778-59C8-4BFA-A770-C350216BF161}.Debug|x86.ActiveCfg = Debug|Any CPU + {D011A778-59C8-4BFA-A770-C350216BF161}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D011A778-59C8-4BFA-A770-C350216BF161}.Release|Any CPU.Build.0 = Release|Any CPU + {D011A778-59C8-4BFA-A770-C350216BF161}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {D011A778-59C8-4BFA-A770-C350216BF161}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {D011A778-59C8-4BFA-A770-C350216BF161}.Release|x86.ActiveCfg = Release|Any CPU + {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.All|Any CPU.ActiveCfg = Release|Any CPU + {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.All|Any CPU.Build.0 = Release|Any CPU + {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.All|Mixed Platforms.ActiveCfg = Release|Any CPU + {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.All|Mixed Platforms.Build.0 = Release|Any CPU + {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.All|x86.ActiveCfg = Release|Any CPU + {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.Debug|x86.ActiveCfg = Debug|Any CPU + {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.Release|Any CPU.Build.0 = Release|Any CPU + {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {F6A208E9-C18F-43E9-B051-3C6EED30FDAF}.Release|x86.ActiveCfg = Release|Any CPU + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + EndGlobalSection + GlobalSection(MonoDevelopProperties) = preSolution + StartupItem = ImageProcessorConsole\ImageProcessorConsole.csproj EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/packages/repositories.config b/src/packages/repositories.config index 458c0f4aa..73ccce20c 100644 --- a/src/packages/repositories.config +++ b/src/packages/repositories.config @@ -1,7 +1,8 @@ - - - - - - + + + + + + + \ No newline at end of file From 837055983a705406c0095e2c15454627447acfa4 Mon Sep 17 00:00:00 2001 From: Thomas Broust Date: Wed, 25 Jun 2014 21:59:11 +0200 Subject: [PATCH 3/6] Changes target framework of console project to .Net 4 Former-commit-id: ad250c27e0b8e2356a358cc7de9d4d331340ef5f --- src/ImageProcessorConsole/ImageProcessorConsole.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ImageProcessorConsole/ImageProcessorConsole.csproj b/src/ImageProcessorConsole/ImageProcessorConsole.csproj index 39b66751b..09423698e 100644 --- a/src/ImageProcessorConsole/ImageProcessorConsole.csproj +++ b/src/ImageProcessorConsole/ImageProcessorConsole.csproj @@ -1,5 +1,5 @@  - + Debug @@ -9,9 +9,9 @@ Properties ImageProcessorConsole ImageProcessorConsole - v4.5.1 512 true + Client AnyCPU @@ -51,7 +51,7 @@ - {3b5dd734-fb7a-487d-8ce6-55e7af9aea7e} + {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E} ImageProcessor From 24bebde817f20e341c164817a165a6e101908ed6 Mon Sep 17 00:00:00 2001 From: Thomas Broust Date: Wed, 25 Jun 2014 22:48:16 +0200 Subject: [PATCH 4/6] Stylecop all the things! Former-commit-id: 8276d2df0fcea4265af27bf6b30fc57984e6af7b --- .../ImageFactoryUnitTests.cs | 15 +++++++ .../RegularExpressionUnitTests.cs | 42 ++++++++++++------- 2 files changed, 42 insertions(+), 15 deletions(-) create mode 100644 src/ImageProcessor.UnitTests/ImageFactoryUnitTests.cs diff --git a/src/ImageProcessor.UnitTests/ImageFactoryUnitTests.cs b/src/ImageProcessor.UnitTests/ImageFactoryUnitTests.cs new file mode 100644 index 000000000..12076b975 --- /dev/null +++ b/src/ImageProcessor.UnitTests/ImageFactoryUnitTests.cs @@ -0,0 +1,15 @@ +using NUnit.Framework; +using System; + +namespace ImageProcessor.UnitTests +{ + [TestFixture()] + public class ImageFactoryUnitTests + { + [Test()] + public void TestCase() + { + } + } +} + diff --git a/src/ImageProcessor.UnitTests/RegularExpressionUnitTests.cs b/src/ImageProcessor.UnitTests/RegularExpressionUnitTests.cs index 280af264e..fcd45df4a 100644 --- a/src/ImageProcessor.UnitTests/RegularExpressionUnitTests.cs +++ b/src/ImageProcessor.UnitTests/RegularExpressionUnitTests.cs @@ -1,4 +1,14 @@ -namespace ImageProcessor.UnitTests +// -------------------------------------------------------------------------------------------------------------------- +// +// Copyright (c) James South. +// Licensed under the Apache License, Version 2.0. +// +// +// Unit tests for the ImageProcessor regular expressions +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace ImageProcessor.UnitTests { using System; using System.Drawing; @@ -6,13 +16,16 @@ using ImageProcessor.Processors; using NUnit.Framework; - [TestFixture ()] + /// + /// Test harness for the regular expressions + /// + [TestFixture] public class RegularExpressionUnitTests { /// /// The alpha regex unit test. /// - [Test ()] + [Test] public void TestAlphaRegex() { const string Querystring = "alpha=56"; @@ -29,7 +42,7 @@ /// /// The brightness regex unit test. /// - [Test ()] + [Test] public void TestBrightnessRegex() { const string Querystring = "brightness=56"; @@ -46,7 +59,7 @@ /// /// The contrast regex unit test. /// - [Test ()] + [Test] public void TestContrastRegex() { const string Querystring = "contrast=56"; @@ -63,7 +76,7 @@ /// /// The rotate regex unit test. /// - [Test ()] + [Test] public void TestCropRegex() { const string Querystring = "crop=0,0,150,300"; @@ -79,7 +92,7 @@ /// /// The filter regex unit test. /// - [Test ()] + [Test] public void TestFilterRegex() { // Should really write more for the other filters. @@ -97,7 +110,7 @@ /// /// The format regex unit test. /// - [Test ()] + [Test] public void TestFormatRegex() { const string Querystring = "format=gif"; @@ -114,7 +127,7 @@ /// /// The quality regex unit test. /// - [Test ()] + [Test] public void TestQualityRegex() { const string Querystring = "quality=56"; @@ -131,7 +144,7 @@ /// /// The resize regex unit test. /// - [Test ()] + [Test] public void TestResizeRegex() { const string Querystring = "width=300"; @@ -148,7 +161,7 @@ /// /// The rotate regex unit test. /// - [Test ()] + [Test] public void TestRotateRegex() { const string Querystring = "rotate=270"; @@ -165,7 +178,7 @@ /// /// The rounded corners regex unit test. /// - [Test ()] + [Test] public void TestRoundedCornersRegex() { const string Querystring = "roundedcorners=30"; @@ -182,7 +195,7 @@ /// /// The rounded corners regex unit test. /// - [Test ()] + [Test] public void TestTintRegex() { const string HexQuerystring = "tint=6aa6cc"; @@ -201,5 +214,4 @@ Assert.AreEqual(expectedRgba, actualRgba); } } -} - +} \ No newline at end of file From e04e9666213066ffd05e7a20803a87d549ef0b08 Mon Sep 17 00:00:00 2001 From: Thomas Broust Date: Wed, 25 Jun 2014 23:26:59 +0200 Subject: [PATCH 5/6] Creates a new simple test class for image loading Former-commit-id: 02b94267bba5aa70f539766790edec61685c0c72 --- .../ImageFactoryUnitTests.cs | 42 +++++-- .../ImageProcessor.UnitTests.csproj | 116 ++++++++++++++++++ 2 files changed, 151 insertions(+), 7 deletions(-) diff --git a/src/ImageProcessor.UnitTests/ImageFactoryUnitTests.cs b/src/ImageProcessor.UnitTests/ImageFactoryUnitTests.cs index 12076b975..ef5b9e0c8 100644 --- a/src/ImageProcessor.UnitTests/ImageFactoryUnitTests.cs +++ b/src/ImageProcessor.UnitTests/ImageFactoryUnitTests.cs @@ -1,15 +1,43 @@ -using NUnit.Framework; -using System; +// -------------------------------------------------------------------------------------------------------------------- +// +// Copyright (c) James South. +// Licensed under the Apache License, Version 2.0. +// +// +// Unit tests for the ImageFactory (loading of images) +// +// -------------------------------------------------------------------------------------------------------------------- namespace ImageProcessor.UnitTests { - [TestFixture()] + using System; + using System.IO; + using NUnit.Framework; + + /// + /// Test harness for the image factory + /// + [TestFixture] public class ImageFactoryUnitTests { - [Test()] - public void TestCase() + /// + /// The path to the binary's folder + /// + private readonly string localPath = Path.GetDirectoryName(new Uri(System.Reflection.Assembly.GetExecutingAssembly().CodeBase).LocalPath); + + /// + /// Tests the loading of image from a file + /// + [Test] + public void TestLoadImageFromFile() { + var testPhoto = Path.Combine(this.localPath, "Images/Chrysanthemum.jpg"); + using (ImageFactory imageFactory = new ImageFactory()) + { + imageFactory.Load(testPhoto); + Assert.AreEqual(testPhoto, imageFactory.ImagePath); + Assert.AreEqual("image/jpeg", imageFactory.MimeType); + } } } -} - +} \ No newline at end of file diff --git a/src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj b/src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj index 5552927ec..c9d6a7da8 100644 --- a/src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj +++ b/src/ImageProcessor.UnitTests/ImageProcessor.UnitTests.csproj @@ -38,6 +38,7 @@ + @@ -48,5 +49,120 @@ + + Images\Chrysanthemum.jpg + PreserveNewest + + + Images\Desert.jpg + PreserveNewest + + + Images\Hydrangeas.jpg + PreserveNewest + + + Images\Jellyfish.jpg + PreserveNewest + + + Images\Koala.jpg + PreserveNewest + + + Images\Lighthouse.jpg + PreserveNewest + + + Images\Penguins-200.jpg + PreserveNewest + + + Images\Penguins-8.png + PreserveNewest + + + Images\Penguins.bmp + PreserveNewest + + + Images\Penguins.gif + PreserveNewest + + + Images\Penguins.jpg + PreserveNewest + + + Images\Penguins.png + PreserveNewest + + + Images\Penguins.tif + PreserveNewest + + + Images\Tulips.jpg + PreserveNewest + + + Images\bus.jpg + PreserveNewest + + + Images\cmyk.jpg + PreserveNewest + + + Images\cmyk.png + PreserveNewest + + + Images\jrt.jpg + PreserveNewest + + + Images\meter.gif + PreserveNewest + + + Images\rocks.jpg + PreserveNewest + + + Images\rotate.jpg + PreserveNewest + + + Images\sample1.jpg + PreserveNewest + + + Images\srgb.jpg + PreserveNewest + + + Images\srgb.png + PreserveNewest + + + Images\text.png + PreserveNewest + + + Images\thor.jpg + PreserveNewest + + + Images\udendørs-374.jpg + PreserveNewest + + + Images\udendørs.jpg + PreserveNewest + + + + \ No newline at end of file From f39d19f74030185a276e03115848866e29944255 Mon Sep 17 00:00:00 2001 From: Thomas Broust Date: Wed, 25 Jun 2014 23:32:41 +0200 Subject: [PATCH 6/6] Tests multiple images using test cases Former-commit-id: 223d71bd205a7ce227c54a0723eb243afcb19c16 --- .../ImageFactoryUnitTests.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/ImageProcessor.UnitTests/ImageFactoryUnitTests.cs b/src/ImageProcessor.UnitTests/ImageFactoryUnitTests.cs index ef5b9e0c8..ccbad8b4e 100644 --- a/src/ImageProcessor.UnitTests/ImageFactoryUnitTests.cs +++ b/src/ImageProcessor.UnitTests/ImageFactoryUnitTests.cs @@ -29,14 +29,20 @@ namespace ImageProcessor.UnitTests /// Tests the loading of image from a file /// [Test] - public void TestLoadImageFromFile() + [TestCase("Chrysanthemum.jpg", "image/jpeg")] + [TestCase("Desert.jpg", "image/jpeg")] + [TestCase("cmyk.png", "image/png")] + [TestCase("Penguins.bmp", "image/bmp")] + [TestCase("Penguins.gif", "image/gif")] + public void TestLoadImageFromFile(string fileName, string expectedMime) { - var testPhoto = Path.Combine(this.localPath, "Images/Chrysanthemum.jpg"); + var testPhoto = Path.Combine(this.localPath, string.Format("Images/{0}", fileName)); using (ImageFactory imageFactory = new ImageFactory()) { imageFactory.Load(testPhoto); Assert.AreEqual(testPhoto, imageFactory.ImagePath); - Assert.AreEqual("image/jpeg", imageFactory.MimeType); + Assert.AreEqual(expectedMime, imageFactory.MimeType); + Assert.IsNotNull(imageFactory.Image); } } }