From 748efcd3c91319853a80f84df089920b842e96f2 Mon Sep 17 00:00:00 2001 From: Anton Firszov Date: Sat, 14 Jan 2017 19:39:22 +0100 Subject: [PATCH 01/11] branch-creation test commit --- global.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global.json b/global.json index 7346bdc28..6da79b611 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "projects": [ "src" ], "sdk": { - "version": "1.0.0-preview2-003121" + "version": "1.0.0-preview2-003131" } } \ No newline at end of file From 453f167177b81d1cb84f4af29fe64d3166677924 Mon Sep 17 00:00:00 2001 From: Anton Firszov Date: Sat, 14 Jan 2017 22:08:03 +0100 Subject: [PATCH 02/11] Initialized ImageSharp.Sandbox46.csproj --- ImageSharp.sln | 7 ++ .../ImageSharp.Sandbox46.csproj | 99 +++++++++++++++++++ .../Properties/AssemblyInfo.cs | 36 +++++++ tests/ImageSharp.Sandbox46/Sandbox.cs | 20 ++++ tests/ImageSharp.Sandbox46/packages.config | 9 ++ 5 files changed, 171 insertions(+) create mode 100644 tests/ImageSharp.Sandbox46/ImageSharp.Sandbox46.csproj create mode 100644 tests/ImageSharp.Sandbox46/Properties/AssemblyInfo.cs create mode 100644 tests/ImageSharp.Sandbox46/Sandbox.cs create mode 100644 tests/ImageSharp.Sandbox46/packages.config diff --git a/ImageSharp.sln b/ImageSharp.sln index 1f848b34d..5490c1048 100644 --- a/ImageSharp.sln +++ b/ImageSharp.sln @@ -53,6 +53,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{9E574A src\Shared\stylecop.json = src\Shared\stylecop.json EndProjectSection EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImageSharp.Sandbox46", "tests\ImageSharp.Sandbox46\ImageSharp.Sandbox46.csproj", "{96188137-5FA6-4924-AB6E-4EFF79C6E0BB}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -99,6 +101,10 @@ Global {A623CFE9-9D2B-4528-AD1F-2E834B061134}.Debug|Any CPU.Build.0 = Debug|Any CPU {A623CFE9-9D2B-4528-AD1F-2E834B061134}.Release|Any CPU.ActiveCfg = Release|Any CPU {A623CFE9-9D2B-4528-AD1F-2E834B061134}.Release|Any CPU.Build.0 = Release|Any CPU + {96188137-5FA6-4924-AB6E-4EFF79C6E0BB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {96188137-5FA6-4924-AB6E-4EFF79C6E0BB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {96188137-5FA6-4924-AB6E-4EFF79C6E0BB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {96188137-5FA6-4924-AB6E-4EFF79C6E0BB}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -115,5 +121,6 @@ Global {556ABDCF-ED93-4327-BE98-F6815F78B9B8} = {815C0625-CD3D-440F-9F80-2D83856AB7AE} {A623CFE9-9D2B-4528-AD1F-2E834B061134} = {815C0625-CD3D-440F-9F80-2D83856AB7AE} {9E574A07-F879-4811-9C41-5CBDC6BAFDB7} = {815C0625-CD3D-440F-9F80-2D83856AB7AE} + {96188137-5FA6-4924-AB6E-4EFF79C6E0BB} = {56801022-D71A-4FBE-BC5B-CBA08E2284EC} EndGlobalSection EndGlobal diff --git a/tests/ImageSharp.Sandbox46/ImageSharp.Sandbox46.csproj b/tests/ImageSharp.Sandbox46/ImageSharp.Sandbox46.csproj new file mode 100644 index 000000000..452eaca43 --- /dev/null +++ b/tests/ImageSharp.Sandbox46/ImageSharp.Sandbox46.csproj @@ -0,0 +1,99 @@ + + + + + Debug + AnyCPU + {96188137-5FA6-4924-AB6E-4EFF79C6E0BB} + Library + Properties + ImageSharp + ImageSharp.Sandbox46 + v4.6.1 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + ..\..\packages\xunit.abstractions.2.0.1\lib\net35\xunit.abstractions.dll + True + + + ..\..\packages\xunit.assert.2.2.0-beta4-build3444\lib\netstandard1.0\xunit.assert.dll + True + + + ..\..\packages\xunit.extensibility.core.2.2.0-beta4-build3444\lib\net45\xunit.core.dll + True + + + ..\..\packages\xunit.extensibility.execution.2.2.0-beta4-build3444\lib\net45\xunit.execution.desktop.dll + True + + + + + ..\..\src\ImageSharp\bin\$(Configuration)\net45\ImageSharp.dll + + + ..\..\src\ImageSharp.Drawing\bin\$(Configuration)\net45\ImageSharp.Drawing.dll + + + ..\..\src\ImageSharp.Formats.Bmp\bin\$(Configuration)\net45\ImageSharp.Formats.Bmp.dll + + + ..\..\src\ImageSharp.Formats.Gif\bin\$(Configuration)\net45\ImageSharp.Formats.Gif.dll + + + ..\..\src\ImageSharp.Formats.Jpeg\bin\$(Configuration)\net45\ImageSharp.Formats.Jpeg.dll + + + ..\..\src\ImageSharp.Formats.Png\bin\$(Configuration)\net45\ImageSharp.Formats.Png.dll + + + ..\..\src\ImageSharp\bin\$(Configuration)\net45\ImageSharp.Processing.dll + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tests/ImageSharp.Sandbox46/Properties/AssemblyInfo.cs b/tests/ImageSharp.Sandbox46/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..bee8fb408 --- /dev/null +++ b/tests/ImageSharp.Sandbox46/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +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("ImageSharp.Sandbox46")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Sapa")] +[assembly: AssemblyProduct("ImageSharp.Sandbox46")] +[assembly: AssemblyCopyright("Copyright © Sapa 2017")] +[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("96188137-5fa6-4924-ab6e-4eff79c6e0bb")] + +// 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/tests/ImageSharp.Sandbox46/Sandbox.cs b/tests/ImageSharp.Sandbox46/Sandbox.cs new file mode 100644 index 000000000..a92bb342e --- /dev/null +++ b/tests/ImageSharp.Sandbox46/Sandbox.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ImageSharp +{ + using Xunit; + + public class Sandbox + { + [Fact] + public void HelloImage() + { + Image img = new Image(10, 20); + Assert.Equal(10, img.Width); + } + } +} diff --git a/tests/ImageSharp.Sandbox46/packages.config b/tests/ImageSharp.Sandbox46/packages.config new file mode 100644 index 000000000..128826db5 --- /dev/null +++ b/tests/ImageSharp.Sandbox46/packages.config @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file From 29005d673b4feb673afd0c89b03a9de94d04fdd4 Mon Sep 17 00:00:00 2001 From: Anton Firszov Date: Sat, 14 Jan 2017 22:40:42 +0100 Subject: [PATCH 03/11] added some test files to ImageSharp.Sandbox46.csproj --- .../ImageSharp.Sandbox46.csproj | 63 ++++++++++++++++++- 1 file changed, 62 insertions(+), 1 deletion(-) diff --git a/tests/ImageSharp.Sandbox46/ImageSharp.Sandbox46.csproj b/tests/ImageSharp.Sandbox46/ImageSharp.Sandbox46.csproj index 452eaca43..fd7cc5c78 100644 --- a/tests/ImageSharp.Sandbox46/ImageSharp.Sandbox46.csproj +++ b/tests/ImageSharp.Sandbox46/ImageSharp.Sandbox46.csproj @@ -79,6 +79,63 @@ + + Tests\Drawing\BeziersTests.cs + + + Tests\Drawing\DrawImageTest.cs + + + Tests\Drawing\DrawPathTests.cs + + + Tests\Drawing\FillPatternTests.cs + + + Tests\Drawing\FillSolidBrushTests.cs + + + Tests\Drawing\LineComplexPolygonTests.cs + + + Tests\Drawing\LineTests.cs + + + Tests\Drawing\PolygonTests.cs + + + Tests\Drawing\RecolorImageTest.cs + + + Tests\Drawing\SolidBezierTests.cs + + + Tests\Drawing\SolidComplexPolygonTests.cs + + + Tests\Drawing\SolidPolygonTests.cs + + + Tests\Formats\Jpg\Block8x8FTests.cs + + + Tests\Formats\Jpg\JpegTests.cs + + + Tests\Formats\Jpg\ReferenceImplementations.cs + + + Tests\Formats\Jpg\ReferenceImplementationsTests.cs + + + Tests\Formats\Jpg\UtilityTestClassBase.cs + + + Tests\Formats\Jpg\YCbCrImageTests.cs + + + Tests\Processors\Filters\ResizeTests.cs + @@ -86,7 +143,11 @@ - + + + + +