From 5953bf2f9a003502090e02bbcaf392670e5cb187 Mon Sep 17 00:00:00 2001 From: Thomas Broust Date: Wed, 25 Jun 2014 22:48:16 +0200 Subject: [PATCH] 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 0000000000..12076b9759 --- /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 280af264ed..fcd45df4ae 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