From e0e6887dfea5bf05049eb150f22af096a7a98315 Mon Sep 17 00:00:00 2001 From: Shane32 Date: Fri, 28 Jun 2024 19:23:06 -0400 Subject: [PATCH] Remove category attribute from tests --- QRCoderTests/ArtQRCodeRendererTests.cs | 11 - QRCoderTests/AsciiQRCodeRendererTests.cs | 10 - QRCoderTests/Base64QRCodeRendererTests.cs | 6 - QRCoderTests/BitmapByteQRCodeRendererTests.cs | 7 - QRCoderTests/Helpers/CategoryDiscoverer.cs | 40 ---- QRCoderTests/PayloadGeneratorTests.cs | 205 ------------------ QRCoderTests/PngByteQRCodeRendererTests.cs | 13 -- QRCoderTests/PostscriptQRCodeRendererTests.cs | 6 - QRCoderTests/QRCodeRendererTests.cs | 13 -- QRCoderTests/QRGeneratorTests.cs | 22 -- QRCoderTests/SvgQRCodeRendererTests.cs | 20 -- QRCoderTests/XamlQRCodeRendererTests.cs | 6 - 12 files changed, 359 deletions(-) delete mode 100644 QRCoderTests/Helpers/CategoryDiscoverer.cs diff --git a/QRCoderTests/ArtQRCodeRendererTests.cs b/QRCoderTests/ArtQRCodeRendererTests.cs index cec11dac..161f38a6 100644 --- a/QRCoderTests/ArtQRCodeRendererTests.cs +++ b/QRCoderTests/ArtQRCodeRendererTests.cs @@ -3,19 +3,14 @@ using System.Drawing; using QRCoder; using QRCoderTests.Helpers; -using QRCoderTests.Helpers.XUnitExtenstions; using Shouldly; using Xunit; namespace QRCoderTests; - public class ArtQRCodeRendererTests { - - [Fact] - [Category("QRRenderer/ArtQRCode")] public void can_create_standard_qrcode_graphic() { var gen = new QRCodeGenerator(); @@ -27,7 +22,6 @@ public void can_create_standard_qrcode_graphic() } [Fact] - [Category("QRRenderer/ArtQRCode")] public void can_create_standard_qrcode_graphic_with_custom_finder() { var gen = new QRCodeGenerator(); @@ -44,7 +38,6 @@ public void can_create_standard_qrcode_graphic_with_custom_finder() } [Fact] - [Category("QRRenderer/ArtQRCode")] public void can_create_standard_qrcode_graphic_without_quietzone() { var gen = new QRCodeGenerator(); @@ -56,7 +49,6 @@ public void can_create_standard_qrcode_graphic_without_quietzone() } [Fact] - [Category("QRRenderer/ArtQRCode")] public void can_create_standard_qrcode_graphic_with_background() { var gen = new QRCodeGenerator(); @@ -70,7 +62,6 @@ public void can_create_standard_qrcode_graphic_with_background() } [Fact] - [Category("QRRenderer/ArtQRCode")] public void should_throw_pixelfactor_oor_exception() { var gen = new QRCodeGenerator(); @@ -84,7 +75,6 @@ public void should_throw_pixelfactor_oor_exception() } [Fact] - [Category("QRRenderer/ArtQRCode")] public void can_instantate_parameterless() { var artCode = new ArtQRCode(); @@ -93,7 +83,6 @@ public void can_instantate_parameterless() } [Fact] - [Category("QRRenderer/ArtQRCode")] public void can_render_artqrcode_from_helper() { //Create QR code diff --git a/QRCoderTests/AsciiQRCodeRendererTests.cs b/QRCoderTests/AsciiQRCodeRendererTests.cs index 09d65789..f0a4f0b2 100644 --- a/QRCoderTests/AsciiQRCodeRendererTests.cs +++ b/QRCoderTests/AsciiQRCodeRendererTests.cs @@ -1,5 +1,4 @@ using QRCoder; -using QRCoderTests.Helpers.XUnitExtenstions; using Shouldly; using Xunit; @@ -11,7 +10,6 @@ public class AsciiQRCodeRendererTests { [Fact] - [Category("QRRenderer/AsciiQRCode")] public void can_render_ascii_qrcode() { var targetCode = " \n \n \n \n ██████████████ ████ ██ ██████████████ \n ██ ██ ████ ██ ██ ██ \n ██ ██████ ██ ██ ██ ██ ██ ██████ ██ \n ██ ██████ ██ ██ ██ ██ ██████ ██ \n ██ ██████ ██ ██████████ ██ ██████ ██ \n ██ ██ ██ ██ \n ██████████████ ██ ██ ██ ██████████████ \n ██████████ \n ████ ██ ████ ██████ ██ ██████████ \n ██ ██ ██ ██ ██ ████ \n ████ ██████ ██████ ██████ ██ \n ████ ██ ██████ ██ ██ ██ \n ████ ████ ██ ██ ██ ██ ████ \n ██ ██ ██ ██ ██ \n ██████████████ ██ ████ ██████ ██ \n ██ ██ ██ ████ ██████ \n ██ ██████ ██ ██████ ████████ ██ ██ \n ██ ██████ ██ ██ ██ ████ \n ██ ██████ ██ ██████ ██ ██ ██ \n ██ ██ ██ ██ ██ ██████ \n ██████████████ ██ ██ ██ ██ ██ ██ \n \n \n \n "; @@ -25,7 +23,6 @@ public void can_render_ascii_qrcode() } [Fact] - [Category("QRRenderer/AsciiQRCode")] public void can_render_small_ascii_qrcode() { var targetCode = "█████████████████████████████\n█████████████████████████████\n████ ▄▄▄▄▄ █▀▄█ ▀█ ▄▄▄▄▄ ████\n████ █ █ █▄█ █▄█ █ █ ████\n████ █▄▄▄█ █▄▀▀▀▀█ █▄▄▄█ ████\n████▄▄▄▄▄▄▄█ █ ▀▄█▄▄▄▄▄▄▄████\n████ ▄▄ █▄ ██▀ ▄▄▄▀ ▀ ▄▀████\n████▀█▄█ █▄ ▄ ▀▄▀ █▄█▄▄█████\n█████▄▄▄▄█▄▄▄████▀▀ █▄█▄████\n████ ▄▄▄▄▄ █▄▄█▄▄▀ ▀ ▄█▄▄████\n████ █ █ █ ▀ █▄▀█ ██▄█▄████\n████ █▄▄▄█ █ ▀▄▀ █▄█▄ █ ▄████\n████▄▄▄▄▄▄▄█▄▄▄█████▄█▄▄▄████\n█████████████████████████████\n▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀"; @@ -39,7 +36,6 @@ public void can_render_small_ascii_qrcode() } [Fact] - [Category("QRRenderer/AsciiQRCode")] public void can_render_small_ascii_qrcode_without_quietzones() { var targetCode = " ▄▄▄▄▄ █▀▄█ ▀█ ▄▄▄▄▄ \n █ █ █▄█ █▄█ █ █ \n █▄▄▄█ █▄▀▀▀▀█ █▄▄▄█ \n▄▄▄▄▄▄▄█ █ ▀▄█▄▄▄▄▄▄▄\n ▄▄ █▄ ██▀ ▄▄▄▀ ▀ ▄▀\n▀█▄█ █▄ ▄ ▀▄▀ █▄█▄▄█\n█▄▄▄▄█▄▄▄████▀▀ █▄█▄\n ▄▄▄▄▄ █▄▄█▄▄▀ ▀ ▄█▄▄\n █ █ █ ▀ █▄▀█ ██▄█▄\n █▄▄▄█ █ ▀▄▀ █▄█▄ █ ▄\n▄▄▄▄▄▄▄█▄▄▄█████▄█▄▄▄"; @@ -53,7 +49,6 @@ public void can_render_small_ascii_qrcode_without_quietzones() } [Fact] - [Category("QRRenderer/AsciiQRCode")] public void can_render_small_ascii_qrcode_inverted() { var targetCode = " \n \n █▀▀▀▀▀█ ▄▀ █▄ █▀▀▀▀▀█ \n █ ███ █ ▀ █ ▀ █ ███ █ \n █ ▀▀▀ █ ▀▄▄▄▄ █ ▀▀▀ █ \n ▀▀▀▀▀▀▀ █ █▄▀ ▀▀▀▀▀▀▀ \n ██▀▀█ ▀█ ▄█▀▀▀▄█▄█▀▄ \n ▄ ▀ █ ▀██▀█▄▀▄█ ▀ ▀▀ \n ▀▀▀▀ ▀▀▀ ▄▄██ ▀ ▀ \n █▀▀▀▀▀█ ▀▀ ▀▀▄█▄█▀ ▀▀ \n █ ███ █ █▄█ ▀▄ █ ▀ ▀ \n █ ▀▀▀ █ █▄▀▄█ ▀ ▀█ █▀ \n ▀▀▀▀▀▀▀ ▀▀▀ ▀ ▀▀▀ \n \n "; @@ -67,7 +62,6 @@ public void can_render_small_ascii_qrcode_inverted() } [Fact] - [Category("QRRenderer/AsciiQRCode")] public void can_render_small_ascii_qrcode_with_custom_eol() { var targetCode = "█████████████████████████████\r\n█████████████████████████████\r\n████ ▄▄▄▄▄ █▀▄█ ▀█ ▄▄▄▄▄ ████\r\n████ █ █ █▄█ █▄█ █ █ ████\r\n████ █▄▄▄█ █▄▀▀▀▀█ █▄▄▄█ ████\r\n████▄▄▄▄▄▄▄█ █ ▀▄█▄▄▄▄▄▄▄████\r\n████ ▄▄ █▄ ██▀ ▄▄▄▀ ▀ ▄▀████\r\n████▀█▄█ █▄ ▄ ▀▄▀ █▄█▄▄█████\r\n█████▄▄▄▄█▄▄▄████▀▀ █▄█▄████\r\n████ ▄▄▄▄▄ █▄▄█▄▄▀ ▀ ▄█▄▄████\r\n████ █ █ █ ▀ █▄▀█ ██▄█▄████\r\n████ █▄▄▄█ █ ▀▄▀ █▄█▄ █ ▄████\r\n████▄▄▄▄▄▄▄█▄▄▄█████▄█▄▄▄████\r\n█████████████████████████████\r\n▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀"; @@ -81,7 +75,6 @@ public void can_render_small_ascii_qrcode_with_custom_eol() } [Fact] - [Category("QRRenderer/AsciiQRCode")] public void can_render_ascii_qrcode_without_quietzones() { var targetCode = "██████████████ ████ ██ ██████████████\n██ ██ ████ ██ ██ ██\n██ ██████ ██ ██ ██ ██ ██ ██████ ██\n██ ██████ ██ ██ ██ ██ ██████ ██\n██ ██████ ██ ██████████ ██ ██████ ██\n██ ██ ██ ██\n██████████████ ██ ██ ██ ██████████████\n ██████████ \n ████ ██ ████ ██████ ██ ██████████\n██ ██ ██ ██ ██ ████\n ████ ██████ ██████ ██████ ██\n████ ██ ██████ ██ ██ ██ \n ████ ████ ██ ██ ██ ██ ████ \n ██ ██ ██ ██ ██ \n██████████████ ██ ████ ██████ ██ \n██ ██ ██ ████ ██████ \n██ ██████ ██ ██████ ████████ ██ ██\n██ ██████ ██ ██ ██ ████ \n██ ██████ ██ ██████ ██ ██ ██\n██ ██ ██ ██ ██ ██████\n██████████████ ██ ██ ██ ██ ██ ██"; @@ -95,7 +88,6 @@ public void can_render_ascii_qrcode_without_quietzones() } [Fact] - [Category("QRRenderer/AsciiQRCode")] public void can_render_ascii_qrcode_with_custom_symbols() { var targetCode = " \n \n \n \n \n \n \n \n XXXXXXXXXXXXXX XX XXXXXXXXXXXXXX \n XXXXXXXXXXXXXX XX XXXXXXXXXXXXXX \n XX XX XXXX XX XX \n XX XX XXXX XX XX \n XX XXXXXX XX XXXX XX XXXXXX XX \n XX XXXXXX XX XXXX XX XXXXXX XX \n XX XXXXXX XX XX XX XX XXXXXX XX \n XX XXXXXX XX XX XX XX XXXXXX XX \n XX XXXXXX XX XXXX XX XX XXXXXX XX \n XX XXXXXX XX XXXX XX XX XXXXXX XX \n XX XX XX XX XX XX \n XX XX XX XX XX XX \n XXXXXXXXXXXXXX XX XX XX XXXXXXXXXXXXXX \n XXXXXXXXXXXXXX XX XX XX XXXXXXXXXXXXXX \n XX XX \n XX XX \n XX XX XX XXXXXX XXXX XXXX XX \n XX XX XX XXXXXX XXXX XXXX XX \n XXXXXX XX XXXX XX XX XX XXXX \n XXXXXX XX XXXX XX XX XX XXXX \n XXXXXX XXXXXXXXXX XXXXXXXXXX \n XXXXXX XXXXXXXXXX XXXXXXXXXX \n XX XX XX XX XX XXXXXX XX XX \n XX XX XX XX XX XXXXXX XX XX \n XXXXXX XXXX XX XX XXXX XX XX \n XXXXXX XXXX XX XX XXXX XX XX \n XXXXXX XXXX XX XX \n XXXXXX XXXX XX XX \n XXXXXXXXXXXXXX XXXXXX XX \n XXXXXXXXXXXXXX XXXXXX XX \n XX XX XX XX XX \n XX XX XX XX XX \n XX XXXXXX XX XXXXXXXXXX XXXXXXXXXXXXXX \n XX XXXXXX XX XXXXXXXXXX XXXXXXXXXXXXXX \n XX XXXXXX XX XX XXXX XX XX XXXX \n XX XXXXXX XX XX XXXX XX XX XXXX \n XX XXXXXX XX XXXXXX XXXXXXXXXX \n XX XXXXXX XX XXXXXX XXXXXXXXXX \n XX XX XX XXXX XX XX XX \n XX XX XX XXXX XX XX XX \n XXXXXXXXXXXXXX XX XXXXXX XXXXXX \n XXXXXXXXXXXXXX XX XXXXXX XXXXXX \n \n \n \n \n \n \n \n "; @@ -109,7 +101,6 @@ public void can_render_ascii_qrcode_with_custom_symbols() } [Fact] - [Category("QRRenderer/AsciiQRCode")] public void can_instantate_parameterless() { var asciiCode = new AsciiQRCode(); @@ -118,7 +109,6 @@ public void can_instantate_parameterless() } [Fact] - [Category("QRRenderer/AsciiQRCode")] public void can_render_ascii_qrcode_from_helper() { var targetCode = " \n \n \n \n \n \n \n \n XXXXXXXXXXXXXX XX XXXXXXXXXXXXXX \n XXXXXXXXXXXXXX XX XXXXXXXXXXXXXX \n XX XX XXXX XX XX \n XX XX XXXX XX XX \n XX XXXXXX XX XXXX XX XXXXXX XX \n XX XXXXXX XX XXXX XX XXXXXX XX \n XX XXXXXX XX XX XX XX XXXXXX XX \n XX XXXXXX XX XX XX XX XXXXXX XX \n XX XXXXXX XX XXXX XX XX XXXXXX XX \n XX XXXXXX XX XXXX XX XX XXXXXX XX \n XX XX XX XX XX XX \n XX XX XX XX XX XX \n XXXXXXXXXXXXXX XX XX XX XXXXXXXXXXXXXX \n XXXXXXXXXXXXXX XX XX XX XXXXXXXXXXXXXX \n XX XX \n XX XX \n XX XX XX XXXXXX XXXX XXXX XX \n XX XX XX XXXXXX XXXX XXXX XX \n XXXXXX XX XXXX XX XX XX XXXX \n XXXXXX XX XXXX XX XX XX XXXX \n XXXXXX XXXXXXXXXX XXXXXXXXXX \n XXXXXX XXXXXXXXXX XXXXXXXXXX \n XX XX XX XX XX XXXXXX XX XX \n XX XX XX XX XX XXXXXX XX XX \n XXXXXX XXXX XX XX XXXX XX XX \n XXXXXX XXXX XX XX XXXX XX XX \n XXXXXX XXXX XX XX \n XXXXXX XXXX XX XX \n XXXXXXXXXXXXXX XXXXXX XX \n XXXXXXXXXXXXXX XXXXXX XX \n XX XX XX XX XX \n XX XX XX XX XX \n XX XXXXXX XX XXXXXXXXXX XXXXXXXXXXXXXX \n XX XXXXXX XX XXXXXXXXXX XXXXXXXXXXXXXX \n XX XXXXXX XX XX XXXX XX XX XXXX \n XX XXXXXX XX XX XXXX XX XX XXXX \n XX XXXXXX XX XXXXXX XXXXXXXXXX \n XX XXXXXX XX XXXXXX XXXXXXXXXX \n XX XX XX XXXX XX XX XX \n XX XX XX XXXX XX XX XX \n XXXXXXXXXXXXXX XX XXXXXX XXXXXX \n XXXXXXXXXXXXXX XX XXXXXX XXXXXX \n \n \n \n \n \n \n \n "; diff --git a/QRCoderTests/Base64QRCodeRendererTests.cs b/QRCoderTests/Base64QRCodeRendererTests.cs index 4bf011de..797502b5 100644 --- a/QRCoderTests/Base64QRCodeRendererTests.cs +++ b/QRCoderTests/Base64QRCodeRendererTests.cs @@ -3,7 +3,6 @@ using System.Drawing; using System.IO; using QRCoder; -using QRCoderTests.Helpers.XUnitExtenstions; using Shouldly; using Xunit; @@ -20,7 +19,6 @@ public Base64QRCodeRendererTests() } [Fact] - [Category("QRRenderer/Base64QRCode")] public void can_render_base64_qrcode_blackwhite() { var pngCodeGfx = new PngByteQRCode(_data).GetGraphic(5); @@ -29,7 +27,6 @@ public void can_render_base64_qrcode_blackwhite() } [Fact] - [Category("QRRenderer/Base64QRCode")] public void can_render_base64_qrcode_noquietzones() { var pngCodeGfx = new PngByteQRCode(_data).GetGraphic(5, false); @@ -38,7 +35,6 @@ public void can_render_base64_qrcode_noquietzones() } [Fact] - [Category("QRRenderer/Base64QRCode")] public void can_render_base64_qrcode_color() { var pngCodeGfx = new PngByteQRCode(_data).GetGraphic(5, new byte[] { 255, 0, 0 }, new byte[] { 0, 0, 255 }); @@ -47,7 +43,6 @@ public void can_render_base64_qrcode_color() } [Fact] - [Category("QRRenderer/Base64QRCode")] public void can_render_base64_qrcode_transparent() { var pngCodeGfx = new PngByteQRCode(_data).GetGraphic(5, new byte[] { 0, 255, 0, 255 }, new byte[] { 255, 255, 255, 0 }); @@ -57,7 +52,6 @@ public void can_render_base64_qrcode_transparent() #if SYSTEM_DRAWING [Fact] - [Category("QRRenderer/Base64QRCode")] public void can_render_base64_qrcode_jpeg() { var ms = new MemoryStream(); diff --git a/QRCoderTests/BitmapByteQRCodeRendererTests.cs b/QRCoderTests/BitmapByteQRCodeRendererTests.cs index f5ff187c..ced9b3d3 100644 --- a/QRCoderTests/BitmapByteQRCodeRendererTests.cs +++ b/QRCoderTests/BitmapByteQRCodeRendererTests.cs @@ -1,17 +1,13 @@ using QRCoder; using QRCoderTests.Helpers; -using QRCoderTests.Helpers.XUnitExtenstions; using Shouldly; using Xunit; - namespace QRCoderTests; - public class BitmapByteQRCodeRendererTests { [Fact] - [Category("QRRenderer/BitmapByteQRCode")] public void can_render_bitmapbyte_qrcode() { var gen = new QRCodeGenerator(); @@ -24,7 +20,6 @@ public void can_render_bitmapbyte_qrcode() [Fact] - [Category("QRRenderer/BitmapByteQRCode")] public void can_render_bitmapbyte_qrcode_color_bytearray() { var gen = new QRCodeGenerator(); @@ -36,7 +31,6 @@ public void can_render_bitmapbyte_qrcode_color_bytearray() } [Fact] - [Category("QRRenderer/BitmapByteQRCode")] public void can_render_bitmapbyte_qrcode_drawing_color() { var gen = new QRCodeGenerator(); @@ -46,5 +40,4 @@ public void can_render_bitmapbyte_qrcode_drawing_color() var result = HelperFunctions.ByteArrayToHash(bmp); result.ShouldBe("40cd208fc46aa726d6e98a2028ffd2b7"); } - } diff --git a/QRCoderTests/Helpers/CategoryDiscoverer.cs b/QRCoderTests/Helpers/CategoryDiscoverer.cs deleted file mode 100644 index f67c3662..00000000 --- a/QRCoderTests/Helpers/CategoryDiscoverer.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -#if !NETFRAMEWORK -using Xunit.Abstractions; -#endif -using Xunit.Sdk; - -namespace QRCoderTests.Helpers.XUnitExtenstions; - -#if NETFRAMEWORK -[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] -public class CategoryAttribute : Attribute -{ -#pragma warning disable IDE0060 // Remove unused parameter - public CategoryAttribute(string category) { } -#pragma warning restore IDE0060 // Remove unused parameter -} -#else -public class CategoryDiscoverer : ITraitDiscoverer -{ - public const string KEY = "Category"; - - public IEnumerable> GetTraits(IAttributeInfo traitAttribute) - { - var ctorArgs = traitAttribute.GetConstructorArguments().ToList(); - yield return new KeyValuePair(KEY, ctorArgs[0].ToString()); - } -} - -//NOTICE: Take a note that you must provide appropriate namespace here -[TraitDiscoverer("QRCoderTests.XUnitExtenstions.CategoryDiscoverer", "QRCoderTests")] -[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] -public class CategoryAttribute : Attribute, ITraitAttribute -{ -#pragma warning disable IDE0060 // Remove unused parameter - public CategoryAttribute(string category) { } -#pragma warning restore IDE0060 // Remove unused parameter -} -#endif diff --git a/QRCoderTests/PayloadGeneratorTests.cs b/QRCoderTests/PayloadGeneratorTests.cs index 30fee18c..34aba2a6 100644 --- a/QRCoderTests/PayloadGeneratorTests.cs +++ b/QRCoderTests/PayloadGeneratorTests.cs @@ -3,7 +3,6 @@ using System.Reflection; using System.Threading; using QRCoder; -using QRCoderTests.Helpers.XUnitExtenstions; using Shouldly; using Xunit; using static QRCoder.PayloadGenerator.BezahlCode; @@ -15,9 +14,7 @@ namespace QRCoderTests; public class PayloadGeneratorTests { - [Fact] - [Category("PayloadGenerator/BitcoinAddress")] public void bitcoin_address_generator_can_generate_address() { var address = "175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"; @@ -33,7 +30,6 @@ public void bitcoin_address_generator_can_generate_address() } [Fact] - [Category("PayloadGenerator/BitcoinAddress")] public void bitcoin_address_generator_should_skip_missing_label() { var address = "175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"; @@ -49,7 +45,6 @@ public void bitcoin_address_generator_should_skip_missing_label() } [Fact] - [Category("PayloadGenerator/BitcoinAddress")] public void bitcoin_address_generator_should_skip_missing_message() { var address = "175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"; @@ -64,7 +59,6 @@ public void bitcoin_address_generator_should_skip_missing_message() } [Fact] - [Category("PayloadGenerator/BitcoinAddress")] public void bitcoin_address_generator_should_round_to_satoshi() { var address = "175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"; @@ -79,7 +73,6 @@ public void bitcoin_address_generator_should_round_to_satoshi() } [Fact] - [Category("PayloadGenerator/BitcoinAddress")] public void bitcoin_address_generator_disregards_current_culture() { #if NETCOREAPP1_1 @@ -108,7 +101,6 @@ public void bitcoin_address_generator_disregards_current_culture() } [Fact] - [Category("PayloadGenerator/BitcoinCashAddress")] public void bitcoincash_address_generator_can_generate_address() { var address = "qqtlfk37qyey50f4wfuhc7jw85zsdp8s2swffjk890"; @@ -124,7 +116,6 @@ public void bitcoincash_address_generator_can_generate_address() } [Fact] - [Category("PayloadGenerator/BitcoinCashAddress")] public void bitcoincash_address_generator_should_skip_missing_label() { var address = "qqtlfk37qyey50f4wfuhc7jw85zsdp8s2swffjk890"; @@ -140,7 +131,6 @@ public void bitcoincash_address_generator_should_skip_missing_label() } [Fact] - [Category("PayloadGenerator/BitcoinCashAddress")] public void bitcoincash_address_generator_should_skip_missing_message() { var address = "qqtlfk37qyey50f4wfuhc7jw85zsdp8s2swffjk890"; @@ -155,7 +145,6 @@ public void bitcoincash_address_generator_should_skip_missing_message() } [Fact] - [Category("PayloadGenerator/BitcoinCashAddress")] public void bitcoincash_address_generator_should_round_to_satoshi() { var address = "qqtlfk37qyey50f4wfuhc7jw85zsdp8s2swffjk890"; @@ -170,7 +159,6 @@ public void bitcoincash_address_generator_should_round_to_satoshi() } [Fact] - [Category("PayloadGenerator/BitcoinCashAddress")] public void bitcoincash_address_generator_disregards_current_culture() { #if NETCOREAPP1_1 @@ -199,7 +187,6 @@ public void bitcoincash_address_generator_disregards_current_culture() } [Fact] - [Category("PayloadGenerator/LitecoinAddress")] public void litecoin_address_generator_can_generate_address() { var address = "LY1t7iLnwtPCb1DPZP38FA835XzFqXBq54"; @@ -215,7 +202,6 @@ public void litecoin_address_generator_can_generate_address() } [Fact] - [Category("PayloadGenerator/LitecoinAddress")] public void litecoin_address_generator_should_skip_missing_label() { var address = "LY1t7iLnwtPCb1DPZP38FA835XzFqXBq54"; @@ -231,7 +217,6 @@ public void litecoin_address_generator_should_skip_missing_label() } [Fact] - [Category("PayloadGenerator/LitecoinAddress")] public void litecoin_address_generator_should_skip_missing_message() { var address = "LY1t7iLnwtPCb1DPZP38FA835XzFqXBq54"; @@ -246,7 +231,6 @@ public void litecoin_address_generator_should_skip_missing_message() } [Fact] - [Category("PayloadGenerator/LitecoinAddress")] public void litecoin_address_generator_should_round_to_satoshi() { var address = "LY1t7iLnwtPCb1DPZP38FA835XzFqXBq54"; @@ -261,7 +245,6 @@ public void litecoin_address_generator_should_round_to_satoshi() } [Fact] - [Category("PayloadGenerator/LitecoinAddress")] public void litecoin_address_generator_disregards_current_culture() { #if NETCOREAPP1_1 @@ -290,7 +273,6 @@ public void litecoin_address_generator_disregards_current_culture() } [Fact] - [Category("PayloadGenerator/WiFi")] public void wifi_should_build_wep() { var ssid = "MyWiFiSSID"; @@ -304,7 +286,6 @@ public void wifi_should_build_wep() } [Fact] - [Category("PayloadGenerator/WiFi")] public void wifi_should_build_wpa() { var ssid = "MyWiFiSSID"; @@ -318,7 +299,6 @@ public void wifi_should_build_wpa() } [Fact] - [Category("PayloadGenerator/WiFi")] public void wifi_should_build_wpa2() { var ssid = "MyWiFiSSID"; @@ -332,7 +312,6 @@ public void wifi_should_build_wpa2() } [Fact] - [Category("PayloadGenerator/WiFi")] public void wifi_should_ignore_hiddenSSID_param() { var ssid = "MyWiFiSSID"; @@ -346,7 +325,6 @@ public void wifi_should_ignore_hiddenSSID_param() [Fact] - [Category("PayloadGenerator/WiFi")] public void wifi_should_add_hiddenSSID_param() { var ssid = "M\\y;W,i:FiSSID"; @@ -361,7 +339,6 @@ public void wifi_should_add_hiddenSSID_param() [Fact] - [Category("PayloadGenerator/WiFi")] public void wifi_should_escape_input() { var ssid = "MyWiFiSSID"; @@ -376,7 +353,6 @@ public void wifi_should_escape_input() [Fact] - [Category("PayloadGenerator/WiFi")] public void wifi_should_escape_hex_style1() { var ssid = "A9B7F18CCE"; @@ -391,7 +367,6 @@ public void wifi_should_escape_hex_style1() [Fact] - [Category("PayloadGenerator/WiFi")] public void wifi_should_escape_hex_style2() { var ssid = "a9b7f18cce"; @@ -406,7 +381,6 @@ public void wifi_should_escape_hex_style2() [Fact] - [Category("PayloadGenerator/WiFi")] public void wifi_should_escape_hex_style3() { var ssid = "0xA9B7F18CCE"; @@ -421,7 +395,6 @@ public void wifi_should_escape_hex_style3() [Fact] - [Category("PayloadGenerator/WiFi")] public void wifi_should_escape_hex_style4() { var ssid = "0XA9B7F18CCE"; @@ -436,7 +409,6 @@ public void wifi_should_escape_hex_style4() [Fact] - [Category("PayloadGenerator/Mail")] public void mail_should_build_type_mailto() { var receiver = "john@doe.com"; @@ -451,7 +423,6 @@ public void mail_should_build_type_mailto() [Fact] - [Category("PayloadGenerator/Mail")] public void mail_should_build_type_mailto_receiver_only() { var receiver = "john@doe.com"; @@ -464,7 +435,6 @@ public void mail_should_build_type_mailto_receiver_only() [Fact] - [Category("PayloadGenerator/Mail")] public void mail_should_build_type_mailto_subject_only() { var receiver = "john@doe.com"; @@ -477,7 +447,6 @@ public void mail_should_build_type_mailto_subject_only() } [Fact] - [Category("PayloadGenerator/Mail")] public void mail_should_build_type_mailto_message_only() { var receiver = "john@doe.com"; @@ -490,7 +459,6 @@ public void mail_should_build_type_mailto_message_only() } [Fact] - [Category("PayloadGenerator/Mail")] public void mail_should_build_type_mailto_no_receiver() { var subject = "A test mail"; @@ -503,7 +471,6 @@ public void mail_should_build_type_mailto_no_receiver() } [Fact] - [Category("PayloadGenerator/Mail")] public void mail_should_build_type_MATMSG() { var receiver = "john@doe.com"; @@ -518,7 +485,6 @@ public void mail_should_build_type_MATMSG() [Fact] - [Category("PayloadGenerator/Mail")] public void mail_should_build_type_SMTP() { var receiver = "john@doe.com"; @@ -533,7 +499,6 @@ public void mail_should_build_type_SMTP() [Fact] - [Category("PayloadGenerator/Mail")] public void mail_should_escape_input_MATMSG() { var receiver = "john@doe.com"; @@ -547,7 +512,6 @@ public void mail_should_escape_input_MATMSG() } [Fact] - [Category("PayloadGenerator/Mail")] public void mail_should_escape_input_SMTP() { var receiver = "john@doe.com"; @@ -561,7 +525,6 @@ public void mail_should_escape_input_SMTP() } [Fact] - [Category("PayloadGenerator/SMS")] public void sms_should_build_type_SMS() { var number = "01601234567"; @@ -575,7 +538,6 @@ public void sms_should_build_type_SMS() [Fact] - [Category("PayloadGenerator/SMS")] public void sms_should_build_type_SMS_iOS() { var number = "01601234567"; @@ -589,7 +551,6 @@ public void sms_should_build_type_SMS_iOS() [Fact] - [Category("PayloadGenerator/SMS")] public void sms_should_build_type_SMSTO() { var number = "01601234567"; @@ -603,7 +564,6 @@ public void sms_should_build_type_SMSTO() [Fact] - [Category("PayloadGenerator/SMS")] public void sms_should_not_add_unused_params() { var number = "01601234567"; @@ -615,7 +575,6 @@ public void sms_should_not_add_unused_params() [Fact] - [Category("PayloadGenerator/MMS")] public void mms_should_build_type_MMS() { var number = "01601234567"; @@ -629,7 +588,6 @@ public void mms_should_build_type_MMS() [Fact] - [Category("PayloadGenerator/MMS")] public void mms_should_build_type_MMSTO() { var number = "01601234567"; @@ -643,7 +601,6 @@ public void mms_should_build_type_MMSTO() [Fact] - [Category("PayloadGenerator/MMS")] public void mms_should_not_add_unused_params() { var number = "01601234567"; @@ -655,7 +612,6 @@ public void mms_should_not_add_unused_params() [Fact] - [Category("PayloadGenerator/Geolocation")] public void geolocation_should_build_type_GEO() { var latitude = "51.227741"; @@ -669,7 +625,6 @@ public void geolocation_should_build_type_GEO() [Fact] - [Category("PayloadGenerator/Geolocation")] public void geolocation_should_build_type_GoogleMaps() { var latitude = "51.227741"; @@ -683,7 +638,6 @@ public void geolocation_should_build_type_GoogleMaps() [Fact] - [Category("PayloadGenerator/Geolocation")] public void geolocation_should_escape_input() { var latitude = "51,227741"; @@ -697,7 +651,6 @@ public void geolocation_should_escape_input() [Fact] - [Category("PayloadGenerator/Geolocation")] public void geolocation_should_add_unused_params() { var latitude = "51.227741"; @@ -710,7 +663,6 @@ public void geolocation_should_add_unused_params() [Fact] - [Category("PayloadGenerator/PhoneNumber")] public void phonenumber_should_build() { var number = "+495321123456"; @@ -722,7 +674,6 @@ public void phonenumber_should_build() [Fact] - [Category("PayloadGenerator/Skype")] public void skype_should_build() { var username = "johndoe123"; @@ -734,7 +685,6 @@ public void skype_should_build() [Fact] - [Category("PayloadGenerator/Url")] public void url_should_build_http() { var url = "http://code-bude.net"; @@ -746,7 +696,6 @@ public void url_should_build_http() [Fact] - [Category("PayloadGenerator/Url")] public void url_should_build_https() { var url = "https://code-bude.net"; @@ -758,7 +707,6 @@ public void url_should_build_https() [Fact] - [Category("PayloadGenerator/Url")] public void url_should_build_https_all_caps() { var url = "HTTPS://CODE-BUDE.NET"; @@ -770,7 +718,6 @@ public void url_should_build_https_all_caps() [Fact] - [Category("PayloadGenerator/Url")] public void url_should_add_http() { var url = "code-bude.net"; @@ -782,7 +729,6 @@ public void url_should_add_http() [Fact] - [Category("PayloadGenerator/Bookmark")] public void bookmark_should_build() { var url = "http://code-bude.net"; @@ -795,7 +741,6 @@ public void bookmark_should_build() [Fact] - [Category("PayloadGenerator/Bookmark")] public void bookmark_should_escape_input() { var url = "http://code-bude.net/fake,url.html"; @@ -808,7 +753,6 @@ public void bookmark_should_escape_input() [Fact] - [Category("PayloadGenerator/CalendarEvent")] public void calendarevent_should_build_universal() { var subject = "Release party"; @@ -826,7 +770,6 @@ public void calendarevent_should_build_universal() [Fact] - [Category("PayloadGenerator/CalendarEvent")] public void calendarevent_should_build_ical() { var subject = "Release party"; @@ -844,7 +787,6 @@ public void calendarevent_should_build_ical() [Fact] - [Category("PayloadGenerator/CalendarEvent")] public void calendarevent_should_build_with_utc_datetime() { var subject = "Release party"; @@ -862,7 +804,6 @@ public void calendarevent_should_build_with_utc_datetime() [Fact] - [Category("PayloadGenerator/CalendarEvent")] public void calendarevent_should_build_with_utc_offset() { var subject = "Release party"; @@ -880,7 +821,6 @@ public void calendarevent_should_build_with_utc_offset() [Fact] - [Category("PayloadGenerator/CalendarEvent")] public void calendarevent_should_build_allday() { var subject = "Release party"; @@ -898,7 +838,6 @@ public void calendarevent_should_build_allday() [Fact] - [Category("PayloadGenerator/CalendarEvent")] public void calendarevent_should_care_empty_fields() { var subject = "Release party"; @@ -916,7 +855,6 @@ public void calendarevent_should_care_empty_fields() [Fact] - [Category("PayloadGenerator/CalendarEvent")] public void calendarevent_should_add_unused_params() { var subject = "Release party"; @@ -933,7 +871,6 @@ public void calendarevent_should_add_unused_params() [Fact] - [Category("PayloadGenerator/IbanValidator")] public void iban_validator_validate_german_iban() { var iban = "DE15268500010154131577"; @@ -946,7 +883,6 @@ public void iban_validator_validate_german_iban() [Fact] - [Category("PayloadGenerator/IbanValidator")] public void iban_validator_validate_swiss_iban() { var iban = "CH1900767000U00121977"; @@ -959,7 +895,6 @@ public void iban_validator_validate_swiss_iban() [Fact] - [Category("PayloadGenerator/IbanValidator")] public void iban_validator_invalidates_iban() { var iban = "DE29268500010154131577"; @@ -972,7 +907,6 @@ public void iban_validator_invalidates_iban() [Fact] - [Category("PayloadGenerator/QrIbanValidator")] public void qriban_validator_validates_iban() { var iban = "CH2430043000000789012"; @@ -984,7 +918,6 @@ public void qriban_validator_validates_iban() } [Fact] - [Category("PayloadGenerator/QrIbanValidator")] public void qriban_validator_invalidates_iban() { var iban = "CH3908704016075473007"; @@ -997,7 +930,6 @@ public void qriban_validator_invalidates_iban() [Fact] - [Category("PayloadGenerator/Girocode")] public void girocode_generator_can_generate_payload_minimal() { var iban = "DE33100205000001194700"; @@ -1013,7 +945,6 @@ public void girocode_generator_can_generate_payload_minimal() } [Fact] - [Category("PayloadGenerator/Girocode")] public void girocode_generator_can_generate_payload_full() { var iban = "DE33100205000001194700"; @@ -1035,7 +966,6 @@ public void girocode_generator_can_generate_payload_full() } [Fact] - [Category("PayloadGenerator/Girocode")] public void girocode_generator_should_handle_version() { var iban = "DE33100205000001194700"; @@ -1058,7 +988,6 @@ public void girocode_generator_should_handle_version() [Fact] - [Category("PayloadGenerator/Girocode")] public void girocode_generator_should_handle_iban_whitespaces() { var iban = "DE33 1002 0500 0001 1947 00"; @@ -1078,7 +1007,6 @@ public void girocode_generator_should_handle_iban_whitespaces() } [Fact] - [Category("PayloadGenerator/Girocode")] public void girocode_generator_should_handle_bic_whitespaces() { var iban = "DE33100205000001194700"; @@ -1099,7 +1027,6 @@ public void girocode_generator_should_handle_bic_whitespaces() [Fact] - [Category("PayloadGenerator/Girocode")] public void girocode_generator_should_fill_amount_decimals() { var iban = "DE33100205000001194700"; @@ -1120,7 +1047,6 @@ public void girocode_generator_should_fill_amount_decimals() [Fact] - [Category("PayloadGenerator/Girocode")] public void girocode_generator_should_throw_iban_exception() { var iban = "33100205000001194700"; @@ -1142,7 +1068,6 @@ public void girocode_generator_should_throw_iban_exception() [Fact] - [Category("PayloadGenerator/Girocode")] public void girocode_generator_should_throw_bic_exception() { var iban = "DE33100205000001194700"; @@ -1164,7 +1089,6 @@ public void girocode_generator_should_throw_bic_exception() [Fact] - [Category("PayloadGenerator/Girocode")] public void girocode_generator_should_throw_name_exception() { var iban = "DE33100205000001194700"; @@ -1186,7 +1110,6 @@ public void girocode_generator_should_throw_name_exception() [Fact] - [Category("PayloadGenerator/Girocode")] public void girocode_generator_should_throw_amount_decimals_exception() { var iban = "DE33100205000001194700"; @@ -1207,7 +1130,6 @@ public void girocode_generator_should_throw_amount_decimals_exception() } [Fact] - [Category("PayloadGenerator/Girocode")] public void girocode_generator_should_throw_amount_min_exception() { var iban = "DE33100205000001194700"; @@ -1230,7 +1152,6 @@ public void girocode_generator_should_throw_amount_min_exception() [Fact] - [Category("PayloadGenerator/Girocode")] public void girocode_generator_should_throw_amount_max_exception() { var iban = "DE33100205000001194700"; @@ -1252,7 +1173,6 @@ public void girocode_generator_should_throw_amount_max_exception() [Fact] - [Category("PayloadGenerator/Girocode")] public void girocode_generator_should_throw_purpose_exception() { var iban = "DE33100205000001194700"; @@ -1273,7 +1193,6 @@ public void girocode_generator_should_throw_purpose_exception() } [Fact] - [Category("PayloadGenerator/Girocode")] public void girocode_generator_should_throw_remittance_unstructured_exception() { var iban = "DE33100205000001194700"; @@ -1294,7 +1213,6 @@ public void girocode_generator_should_throw_remittance_unstructured_exception() } [Fact] - [Category("PayloadGenerator/Girocode")] public void girocode_generator_should_throw_remittance_structured_exception() { var iban = "DE33100205000001194700"; @@ -1315,7 +1233,6 @@ public void girocode_generator_should_throw_remittance_structured_exception() } [Fact] - [Category("PayloadGenerator/Girocode")] public void girocode_generator_should_throw_usermessage_exception() { var iban = "DE33100205000001194700"; @@ -1336,7 +1253,6 @@ public void girocode_generator_should_throw_usermessage_exception() } [Fact] - [Category("PayloadGenerator/Girocode")] public void girocode_generator_sets_encoding_parameters() { var iban = "DE33100205000001194700"; @@ -1352,7 +1268,6 @@ public void girocode_generator_sets_encoding_parameters() } [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_can_generate_payload_singlepayment_minimal() { var account = "001194700"; @@ -1369,7 +1284,6 @@ public void bezahlcode_generator_can_generate_payload_singlepayment_minimal() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_can_generate_payload_singlepayment_full() { var account = "001194700"; @@ -1389,7 +1303,6 @@ public void bezahlcode_generator_can_generate_payload_singlepayment_full() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_can_generate_payload_singledirectdebit() { var account = "001194700"; @@ -1409,7 +1322,6 @@ public void bezahlcode_generator_can_generate_payload_singledirectdebit() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_can_generate_payload_periodicsinglepayment() { var account = "001194700"; @@ -1433,7 +1345,6 @@ public void bezahlcode_generator_can_generate_payload_periodicsinglepayment() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_can_generate_payload_singlepaymentsepa_minimal() { var iban = "DE33100205000001194700"; @@ -1450,7 +1361,6 @@ public void bezahlcode_generator_can_generate_payload_singlepaymentsepa_minimal( [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_can_generate_payload_singlepaymentsepa_full() { var iban = "DE33100205000001194700"; @@ -1470,7 +1380,6 @@ public void bezahlcode_generator_can_generate_payload_singlepaymentsepa_full() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_can_generate_payload_singledirectdebitsepa() { var iban = "DE33100205000001194700"; @@ -1492,7 +1401,6 @@ public void bezahlcode_generator_can_generate_payload_singledirectdebitsepa() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_can_generate_payload_periodicsinglepaymentsepa() { var iban = "DE33100205000001194700"; @@ -1516,7 +1424,6 @@ public void bezahlcode_generator_can_generate_payload_periodicsinglepaymentsepa( [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_can_generate_payload_contact() { var account = "001194700"; @@ -1532,7 +1439,6 @@ public void bezahlcode_generator_can_generate_payload_contact() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_can_generate_payload_contact_full() { var account = "001194700"; @@ -1549,7 +1455,6 @@ public void bezahlcode_generator_can_generate_payload_contact_full() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_can_generate_payload_contactv2_classic() { var account = "001194700"; @@ -1565,7 +1470,6 @@ public void bezahlcode_generator_can_generate_payload_contactv2_classic() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_can_generate_payload_contactv2_sepa() { var iban = "DE33100205000001194700"; @@ -1582,7 +1486,6 @@ public void bezahlcode_generator_can_generate_payload_contactv2_sepa() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_can_generate_payload_contactv2_sepa_full() { var iban = "DE33100205000001194700"; @@ -1599,7 +1502,6 @@ public void bezahlcode_generator_can_generate_payload_contactv2_sepa_full() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_handle_account_whitespaces() { var account = "01 194700"; @@ -1616,7 +1518,6 @@ public void bezahlcode_generator_should_handle_account_whitespaces() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_handle_bnc_whitespaces() { var account = "001194700"; @@ -1633,7 +1534,6 @@ public void bezahlcode_generator_should_handle_bnc_whitespaces() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_handle_iban_whitespaces() { var iban = "DE33 100205000 0011947 00"; @@ -1650,7 +1550,6 @@ public void bezahlcode_generator_should_handle_iban_whitespaces() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_handle_bic_whitespaces() { var iban = "DE33100205000001194700"; @@ -1667,7 +1566,6 @@ public void bezahlcode_generator_should_handle_bic_whitespaces() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_add_decimals() { var account = "001194700"; @@ -1684,7 +1582,6 @@ public void bezahlcode_generator_should_add_decimals() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_wrong_contact_constructor_exception() { var account = "0001194700"; @@ -1700,7 +1597,6 @@ public void bezahlcode_generator_should_throw_wrong_contact_constructor_exceptio [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_wrong_contact_v2_constructor_exception() { var iban = "DE33100205000001194700"; @@ -1716,7 +1612,6 @@ public void bezahlcode_generator_should_throw_wrong_contact_v2_constructor_excep [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_wrong_nonsepa_constructor_exception() { var account = "0001194700"; @@ -1732,7 +1627,6 @@ public void bezahlcode_generator_should_throw_wrong_nonsepa_constructor_exceptio } [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_wrong_nonsepa_constructor_periodic_exception() { var account = "0001194700"; @@ -1756,7 +1650,6 @@ public void bezahlcode_generator_should_throw_wrong_nonsepa_constructor_periodic [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_wrong_sepa_constructor_exception() { var iban = "DE33 100205000 0011947 00"; @@ -1773,7 +1666,6 @@ public void bezahlcode_generator_should_throw_wrong_sepa_constructor_exception() } [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_wrong_sepa_constructor_periodic_exception() { var iban = "DE33100205000001194700"; @@ -1798,7 +1690,6 @@ public void bezahlcode_generator_should_throw_wrong_sepa_constructor_periodic_ex [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_name_too_long_exception() { var iban = "DE33 100205000 0011947 00"; @@ -1816,7 +1707,6 @@ public void bezahlcode_generator_should_throw_name_too_long_exception() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_reason_too_long_exception() { var iban = "DE33 100205000 0011947 00"; @@ -1835,7 +1725,6 @@ public void bezahlcode_generator_should_throw_reason_too_long_exception() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_invalid_account_exception() { var account = "1194700AD"; @@ -1852,7 +1741,6 @@ public void bezahlcode_generator_should_throw_invalid_account_exception() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_invalid_bnc_exception() { var account = "001194700"; @@ -1869,7 +1757,6 @@ public void bezahlcode_generator_should_throw_invalid_bnc_exception() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_invalid_postingkey_exception() { var account = "001194700"; @@ -1887,7 +1774,6 @@ public void bezahlcode_generator_should_throw_invalid_postingkey_exception() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_invalid_iban_exception() { var iban = "DE33100205AZB000001194700"; @@ -1905,7 +1791,6 @@ public void bezahlcode_generator_should_throw_invalid_iban_exception() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_invalid_bic_exception() { var iban = "DE33100205000001194700"; @@ -1923,7 +1808,6 @@ public void bezahlcode_generator_should_throw_invalid_bic_exception() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_separeference_too_long_exception() { var iban = "DE33100205000001194700"; @@ -1946,7 +1830,6 @@ public void bezahlcode_generator_should_throw_separeference_too_long_exception() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_invalid_creditorid_exception() { var iban = "DE33100205000001194700"; @@ -1968,7 +1851,6 @@ public void bezahlcode_generator_should_throw_invalid_creditorid_exception() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_invalid_mandateid_exception() { var iban = "DE33100205000001194700"; @@ -1989,7 +1871,6 @@ public void bezahlcode_generator_should_throw_invalid_mandateid_exception() } [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_amount_too_much_digits_exception() { var iban = "DE33100205000001194700"; @@ -2007,7 +1888,6 @@ public void bezahlcode_generator_should_throw_amount_too_much_digits_exception() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_amount_too_big_exception() { var iban = "DE33100205000001194700"; @@ -2025,7 +1905,6 @@ public void bezahlcode_generator_should_throw_amount_too_big_exception() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_invalid_executiondate_exception() { var account = "001194700"; @@ -2046,7 +1925,6 @@ public void bezahlcode_generator_should_throw_invalid_executiondate_exception() [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_invalid_periodictimeunit_exception() { var iban = "DE33100205000001194700"; @@ -2070,7 +1948,6 @@ public void bezahlcode_generator_should_throw_invalid_periodictimeunit_exception [Fact] - [Category("PayloadGenerator/BezahlCode")] public void bezahlcode_generator_should_throw_invalid_periodictimeunitrotation_exception() { var iban = "DE33100205000001194700"; @@ -2095,7 +1972,6 @@ public void bezahlcode_generator_should_throw_invalid_periodictimeunitrotation_e [Fact] - [Category("PayloadGenerator/SwissQrCode.Reference")] public void swissqrcode_generator_should_throw_reference_not_allowed() { var refType = ReferenceType.NON; @@ -2110,7 +1986,6 @@ public void swissqrcode_generator_should_throw_reference_not_allowed() } [Fact] - [Category("PayloadGenerator/SwissQrCode.Reference")] public void swissqrcode_generator_should_throw_missing_reftexttype() { var refType = ReferenceType.SCOR; @@ -2125,7 +2000,6 @@ public void swissqrcode_generator_should_throw_missing_reftexttype() [Fact] - [Category("PayloadGenerator/SwissQrCode.Reference")] public void swissqrcode_generator_should_throw_qrr_ref_too_long() { var refType = ReferenceType.QRR; @@ -2141,7 +2015,6 @@ public void swissqrcode_generator_should_throw_qrr_ref_too_long() [Fact] - [Category("PayloadGenerator/SwissQrCode.Reference")] public void swissqrcode_generator_should_throw_qrr_ref_wrong_char() { var refType = ReferenceType.QRR; @@ -2157,7 +2030,6 @@ public void swissqrcode_generator_should_throw_qrr_ref_wrong_char() [Fact] - [Category("PayloadGenerator/SwissQrCode.Reference")] public void swissqrcode_generator_should_throw_qrr_ref_checksum_invalid() { var refType = ReferenceType.QRR; @@ -2173,7 +2045,6 @@ public void swissqrcode_generator_should_throw_qrr_ref_checksum_invalid() [Fact] - [Category("PayloadGenerator/SwissQrCode.Reference")] public void swissqrcode_generator_should_throw_iso11649_ref_too_long() { var refType = ReferenceType.QRR; @@ -2188,7 +2059,6 @@ public void swissqrcode_generator_should_throw_iso11649_ref_too_long() } [Fact] - [Category("PayloadGenerator/SwissQrCode.AdditionalInformation")] public void swissqrcode_generator_should_throw_unstructured_msg_too_long() { var billInformation = "This is sample bill information with a length below 140."; @@ -2204,7 +2074,6 @@ public void swissqrcode_generator_should_throw_unstructured_msg_too_long() [Fact] - [Category("PayloadGenerator/SwissQrCode.Iban")] public void swissqrcode_generator_should_generate_iban() { var iban = "CH2609000000857666015"; @@ -2218,7 +2087,6 @@ public void swissqrcode_generator_should_generate_iban() } [Fact] - [Category("PayloadGenerator/SwissQrCode.Iban")] public void swissqrcode_generator_should_generate_iban_2() { var iban = "CH47048350000GABRIELS"; @@ -2232,7 +2100,6 @@ public void swissqrcode_generator_should_generate_iban_2() } [Fact] - [Category("PayloadGenerator/SwissQrCode.Iban")] public void swissqrcode_generator_should_generate_iban_qr() { var iban = "CH2430043000000789012"; @@ -2246,7 +2113,6 @@ public void swissqrcode_generator_should_generate_iban_qr() } [Fact] - [Category("PayloadGenerator/SwissQrCode.Iban")] public void swissqrcode_generator_should_remove_spaces_iban() { var iban = "CH26 0900 0000 8576 6601 5"; @@ -2260,7 +2126,6 @@ public void swissqrcode_generator_should_remove_spaces_iban() } [Fact] - [Category("PayloadGenerator/SwissQrCode.Iban")] public void swissqrcode_generator_should_throw_invalid_iban() { var iban = "CHC2609000000857666015"; @@ -2274,7 +2139,6 @@ public void swissqrcode_generator_should_throw_invalid_iban() } [Fact] - [Category("PayloadGenerator/SwissQrCode.Iban")] public void swissqrcode_generator_should_throw_invalid_qriban() { var iban = "CHC2609000000857666015"; @@ -2288,7 +2152,6 @@ public void swissqrcode_generator_should_throw_invalid_qriban() } [Fact] - [Category("PayloadGenerator/SwissQrCode.Iban")] public void swissqrcode_generator_should_throw_ivalid_iban_country() { var iban = "DE2609000000857666015"; @@ -2304,7 +2167,6 @@ public void swissqrcode_generator_should_throw_ivalid_iban_country() [Fact] - [Category("PayloadGenerator/SwissQrCode.Contact")] public void swissqrcode_generator_should_generate_contact_simple() { var name = "John Doe"; @@ -2320,7 +2182,6 @@ public void swissqrcode_generator_should_generate_contact_simple() } [Fact] - [Category("PayloadGenerator/SwissQrCode.Contact")] public void swissqrcode_generator_should_generate_contact_full() { var name = "John Doe"; @@ -2339,7 +2200,6 @@ public void swissqrcode_generator_should_generate_contact_full() [Fact] - [Category("PayloadGenerator/SwissQrCode.Contact")] public void swissqrcode_generator_should_throw_name_empty() { var name = ""; @@ -2358,7 +2218,6 @@ public void swissqrcode_generator_should_throw_name_empty() [Fact] - [Category("PayloadGenerator/SwissQrCode.Contact")] public void swissqrcode_generator_should_throw_name_too_long() { var name = "John Dorian Peter Charles Lord of the Rings and Master of Disaster Grayham"; @@ -2377,7 +2236,6 @@ public void swissqrcode_generator_should_throw_name_too_long() [Fact] - [Category("PayloadGenerator/SwissQrCode.Contact")] public void swissqrcode_generator_should_throw_street_too_long() { var name = "John Doe"; @@ -2396,7 +2254,6 @@ public void swissqrcode_generator_should_throw_street_too_long() [Fact] - [Category("PayloadGenerator/SwissQrCode.Contact")] public void swissqrcode_generator_should_throw_street_with_illegal_char() { var name = "John Doe"; @@ -2415,7 +2272,6 @@ public void swissqrcode_generator_should_throw_street_with_illegal_char() [Fact] - [Category("PayloadGenerator/SwissQrCode.Contact")] public void swissqrcode_generator_should_throw_housenumber_too_long() { var name = "John Doe"; @@ -2434,7 +2290,6 @@ public void swissqrcode_generator_should_throw_housenumber_too_long() [Fact] - [Category("PayloadGenerator/SwissQrCode.Contact")] public void swissqrcode_generator_should_throw_zip_empty() { var name = "John Doe"; @@ -2452,7 +2307,6 @@ public void swissqrcode_generator_should_throw_zip_empty() } [Fact] - [Category("PayloadGenerator/SwissQrCode.Contact")] public void swissqrcode_generator_should_throw_zip_too_long() { var name = "John Doe"; @@ -2471,7 +2325,6 @@ public void swissqrcode_generator_should_throw_zip_too_long() [Fact] - [Category("PayloadGenerator/SwissQrCode.Contact")] public void swissqrcode_generator_should_throw_zip_has_illegal_char() { var name = "John Doe"; @@ -2490,7 +2343,6 @@ public void swissqrcode_generator_should_throw_zip_has_illegal_char() [Fact] - [Category("PayloadGenerator/SwissQrCode.Contact")] public void swissqrcode_generator_should_throw_city_empty() { var name = "John Doe"; @@ -2509,7 +2361,6 @@ public void swissqrcode_generator_should_throw_city_empty() [Fact] - [Category("PayloadGenerator/SwissQrCode.Contact")] public void swissqrcode_generator_should_throw_city_too_long() { var name = "John Doe"; @@ -2528,7 +2379,6 @@ public void swissqrcode_generator_should_throw_city_too_long() [Fact] - [Category("PayloadGenerator/SwissQrCode.Contact")] public void swissqrcode_generator_should_throw_wrong_countrycode() { var name = "John Doe"; @@ -2548,7 +2398,6 @@ public void swissqrcode_generator_should_throw_wrong_countrycode() [Fact] - [Category("PayloadGenerator/SwissQrCode")] public void swissqrcode_generator_should_generate_swisscode_simple() { var creditor = PayloadGenerator.SwissQrCode.Contact.WithStructuredAddress("John Doe", "3003", "Bern", "CH", "Parlamentsgebäude", "1"); @@ -2564,7 +2413,6 @@ public void swissqrcode_generator_should_generate_swisscode_simple() } [Fact] - [Category("PayloadGenerator/SwissQrCode")] public void swissqrcode_generator_should_generate_swisscode_full() { var contactGeneral = PayloadGenerator.SwissQrCode.Contact.WithStructuredAddress("John Doe", "3003", "Bern", "CH", "Parlamentsgebäude", "1"); @@ -2583,7 +2431,6 @@ public void swissqrcode_generator_should_generate_swisscode_full() } [Fact] - [Category("PayloadGenerator/SwissQrCode")] public void swissqrcode_generator_sets_encoding_parameters() { var creditor = PayloadGenerator.SwissQrCode.Contact.WithStructuredAddress("John Doe", "3003", "Bern", "CH", "Parlamentsgebäude", "1"); @@ -2599,7 +2446,6 @@ public void swissqrcode_generator_sets_encoding_parameters() } [Fact] - [Category("PayloadGenerator/SwissQrCode")] public void swissqrcode_generator_should_generate_clean_end_linebreaks() { var contactGeneral = PayloadGenerator.SwissQrCode.Contact.WithStructuredAddress("John Doe", "3003", "Bern", "CH", "Parlamentsgebäude", "1"); @@ -2619,7 +2465,6 @@ public void swissqrcode_generator_should_generate_clean_end_linebreaks() [Fact] - [Category("PayloadGenerator/SwissQrCode")] public void swissqrcode_generator_should_generate_swisscode_full_alt() { var contactGeneral = PayloadGenerator.SwissQrCode.Contact.WithStructuredAddress("John Doe", "3003", "Bern", "CH", "Parlamentsgebäude", "1"); @@ -2638,7 +2483,6 @@ public void swissqrcode_generator_should_generate_swisscode_full_alt() } [Fact] - [Category("PayloadGenerator/SwissQrCode")] public void swissqrcode_generator_should_not_generate_space_as_thousands_separator() { var contactGeneral = PayloadGenerator.SwissQrCode.Contact.WithStructuredAddress("John Doe", "3003", "Bern", "CH", "Parlamentsgebäude", "1"); @@ -2657,7 +2501,6 @@ public void swissqrcode_generator_should_not_generate_space_as_thousands_separat } [Fact] - [Category("PayloadGenerator/SwissQrCode")] public void swissqrcode_generator_should_throw_amount_too_big() { var contactGeneral = PayloadGenerator.SwissQrCode.Contact.WithStructuredAddress("John Doe", "3003", "Bern", "CH", "Parlamentsgebäude", "1"); @@ -2676,7 +2519,6 @@ public void swissqrcode_generator_should_throw_amount_too_big() } [Fact] - [Category("PayloadGenerator/SwissQrCode")] public void swissqrcode_generator_should_throw_incompatible_reftype() { var contactGeneral = PayloadGenerator.SwissQrCode.Contact.WithStructuredAddress("John Doe", "3003", "Bern", "CH", "Parlamentsgebäude", "1"); @@ -2695,7 +2537,6 @@ public void swissqrcode_generator_should_throw_incompatible_reftype() } [Fact] - [Category("PayloadGenerator/SwissQrCode")] public void swissqrcode_generator_should_throw_alt1_too_long() { var contactGeneral = PayloadGenerator.SwissQrCode.Contact.WithStructuredAddress("John Doe", "3003", "Bern", "CH", "Parlamentsgebäude", "1"); @@ -2715,7 +2556,6 @@ public void swissqrcode_generator_should_throw_alt1_too_long() } [Fact] - [Category("PayloadGenerator/SwissQrCode")] public void swissqrcode_generator_should_throw_alt2_too_long() { var contactGeneral = PayloadGenerator.SwissQrCode.Contact.WithStructuredAddress("John Doe", "3003", "Bern", "CH", "Parlamentsgebäude", "1"); @@ -2735,7 +2575,6 @@ public void swissqrcode_generator_should_throw_alt2_too_long() } [Fact] - [Category("PayloadGenerator/SwissQrCode")] public void swissqrcode_generator_should_validate_two_lettercodes() { string name = "John Doe"; @@ -2770,7 +2609,6 @@ public void swissqrcode_generator_should_validate_two_lettercodes() [Fact] - [Category("PayloadGenerator/OneTimePassword")] public void one_time_password_generator_time_based_generates_with_standard_options() { var pg = new PayloadGenerator.OneTimePassword @@ -2785,7 +2623,6 @@ public void one_time_password_generator_time_based_generates_with_standard_optio [Fact] - [Category("PayloadGenerator/OneTimePassword")] public void one_time_password_generator_time_based_generates_with_standard_options_escapes_issuer_and_label() { var pg = new PayloadGenerator.OneTimePassword @@ -2800,7 +2637,6 @@ public void one_time_password_generator_time_based_generates_with_standard_optio [Fact] - [Category("PayloadGenerator/OneTimePassword")] public void one_time_password_generator_hmac_based_generates_with_standard_options() { var pg = new PayloadGenerator.OneTimePassword @@ -2816,7 +2652,6 @@ public void one_time_password_generator_hmac_based_generates_with_standard_optio } [Fact] - [Category("PayloadGenerator/OneTimePassword")] public void one_time_password_generator_hmac_based_generates_with_standard_options_escapes_issuer_and_label() { var pg = new PayloadGenerator.OneTimePassword @@ -2833,7 +2668,6 @@ public void one_time_password_generator_hmac_based_generates_with_standard_optio [Fact] - [Category("PayloadGenerator/ShadowSocksConfig")] public void shadowsocks_generator_can_generate_payload() { var host = "192.168.2.5"; @@ -2848,7 +2682,6 @@ public void shadowsocks_generator_can_generate_payload() } [Fact] - [Category("PayloadGenerator/ShadowSocksConfig")] public void shadowsocks_generator_can_generate_payload_with_tag() { var host = "192.168.2.5"; @@ -2865,7 +2698,6 @@ public void shadowsocks_generator_can_generate_payload_with_tag() [Fact] - [Category("PayloadGenerator/ShadowSocksConfig")] public void shadowsocks_generator_should_throw_portrange_low_exception() { var host = "192.168.2.5"; @@ -2882,7 +2714,6 @@ public void shadowsocks_generator_should_throw_portrange_low_exception() [Fact] - [Category("PayloadGenerator/ShadowSocksConfig")] public void shadowsocks_generator_should_throw_portrange_high_exception() { var host = "192.168.2.5"; @@ -2899,7 +2730,6 @@ public void shadowsocks_generator_should_throw_portrange_high_exception() [Fact] - [Category("PayloadGenerator/ShadowSocksConfig")] public void shadowsocks_generator_can_generate_payload_with_plugin() { var host = "192.168.100.1"; @@ -2917,7 +2747,6 @@ public void shadowsocks_generator_can_generate_payload_with_plugin() [Fact] - [Category("PayloadGenerator/ContactData")] public void contactdata_generator_can_generate_payload_simple_mecard() { var firstname = "John"; @@ -2932,7 +2761,6 @@ public void contactdata_generator_can_generate_payload_simple_mecard() } [Fact] - [Category("PayloadGenerator/ContactData")] public void contactdata_generator_can_generate_payload_full_mecard() { var firstname = "John"; @@ -2962,7 +2790,6 @@ public void contactdata_generator_can_generate_payload_full_mecard() } [Fact] - [Category("PayloadGenerator/ContactData")] public void contactdata_generator_can_generate_payload_full_mecard_reversed() { var firstname = "John"; @@ -2992,7 +2819,6 @@ public void contactdata_generator_can_generate_payload_full_mecard_reversed() } [Fact] - [Category("PayloadGenerator/ContactData")] public void contactdata_generator_can_generate_payload_full_vcard21() { var firstname = "John"; @@ -3022,7 +2848,6 @@ public void contactdata_generator_can_generate_payload_full_vcard21() } [Fact] - [Category("PayloadGenerator/ContactData")] public void contactdata_generator_can_generate_payload_full_vcard3() { var firstname = "John"; @@ -3052,7 +2877,6 @@ public void contactdata_generator_can_generate_payload_full_vcard3() } [Fact] - [Category("PayloadGenerator/ContactData")] public void contactdata_generator_can_generate_payload_full_vcard4() { var firstname = "John"; @@ -3082,7 +2906,6 @@ public void contactdata_generator_can_generate_payload_full_vcard4() } [Fact] - [Category("PayloadGenerator/ContactData")] public void contactdata_generator_can_generate_payload_full_vcard4_reverse() { var firstname = "John"; @@ -3112,7 +2935,6 @@ public void contactdata_generator_can_generate_payload_full_vcard4_reverse() } [Fact] - [Category("PayloadGenerator/WhatsAppMessage")] public void whatsapp_generator_can_generate_payload_simple() { var number = "491601234567"; @@ -3125,7 +2947,6 @@ public void whatsapp_generator_can_generate_payload_simple() } [Fact] - [Category("PayloadGenerator/WhatsAppMessage")] public void whatsapp_should_add_unused_params() { var msg = "This is a sample message with Umlauts: Ä,ö, ü and ß."; @@ -3137,7 +2958,6 @@ public void whatsapp_should_add_unused_params() } [Fact] - [Category("PayloadGenerator/WhatsAppMessage")] public void whatsapp_should_cleanup_phonenumber_1() { var number = "+49(160)1234567"; @@ -3150,7 +2970,6 @@ public void whatsapp_should_cleanup_phonenumber_1() } [Fact] - [Category("PayloadGenerator/WhatsAppMessage")] public void whatsapp_should_cleanup_phonenumber_2() { var number = "0049-160-1234 567"; @@ -3163,7 +2982,6 @@ public void whatsapp_should_cleanup_phonenumber_2() } [Fact] - [Category("PayloadGenerator/Monero")] public void monero_generator_can_generate_payload_simple() { var address = "46BeWrHpwXmHDpDEUmZBWZfoQpdc6HaERCNmx1pEYL2rAcuwufPN9rXHHtyUA4QVy66qeFQkn6sfK8aHYjA3jk3o1Bv16em"; @@ -3175,7 +2993,6 @@ public void monero_generator_can_generate_payload_simple() } [Fact] - [Category("PayloadGenerator/Monero")] public void monero_generator_can_generate_payload_first_param() { var address = "46BeWrHpwXmHDpDEUmZBWZfoQpdc6HaERCNmx1pEYL2rAcuwufPN9rXHHtyUA4QVy66qeFQkn6sfK8aHYjA3jk3o1Bv16em"; @@ -3189,7 +3006,6 @@ public void monero_generator_can_generate_payload_first_param() [Fact] - [Category("PayloadGenerator/Monero")] public void monero_generator_can_generate_payload_named_param() { var address = "46BeWrHpwXmHDpDEUmZBWZfoQpdc6HaERCNmx1pEYL2rAcuwufPN9rXHHtyUA4QVy66qeFQkn6sfK8aHYjA3jk3o1Bv16em"; @@ -3203,7 +3019,6 @@ public void monero_generator_can_generate_payload_named_param() [Fact] - [Category("PayloadGenerator/Monero")] public void monero_generator_can_generate_payload_full_param() { var address = "46BeWrHpwXmHDpDEUmZBWZfoQpdc6HaERCNmx1pEYL2rAcuwufPN9rXHHtyUA4QVy66qeFQkn6sfK8aHYjA3jk3o1Bv16em"; @@ -3220,7 +3035,6 @@ public void monero_generator_can_generate_payload_full_param() [Fact] - [Category("PayloadGenerator/Monero")] public void monero_generator_should_throw_wrong_amount_exception() { var address = "46BeWrHpwXmHDpDEUmZBWZfoQpdc6HaERCNmx1pEYL2rAcuwufPN9rXHHtyUA4QVy66qeFQkn6sfK8aHYjA3jk3o1Bv16em"; @@ -3235,7 +3049,6 @@ public void monero_generator_should_throw_wrong_amount_exception() [Fact] - [Category("PayloadGenerator/Monero")] public void monero_generator_should_throw_no_address_exception() { var address = ""; @@ -3249,7 +3062,6 @@ public void monero_generator_should_throw_no_address_exception() [Fact] - [Category("PayloadGenerator/RussiaPaymentOrder")] public void russiapayment_generator_can_generate_payload_mandatory_fields() { var account = "40702810138250123017"; @@ -3265,7 +3077,6 @@ public void russiapayment_generator_can_generate_payload_mandatory_fields() } [Fact] - [Category("PayloadGenerator/RussiaPaymentOrder")] public void russiapayment_generator_can_generate_payload_encoding_win1251() { var account = "40702810138250123017"; @@ -3288,7 +3099,6 @@ public void russiapayment_generator_can_generate_payload_encoding_win1251() } [Fact] - [Category("PayloadGenerator/RussiaPaymentOrder")] public void russiapayment_generator_can_generate_payload_encoding_koi8() { var account = "40702810138250123017"; @@ -3311,7 +3121,6 @@ public void russiapayment_generator_can_generate_payload_encoding_koi8() } [Fact] - [Category("PayloadGenerator/RussiaPaymentOrder")] public void russiapayment_generator_can_generate_payload_custom_separator() { var account = "40702810138250123017"; @@ -3327,7 +3136,6 @@ public void russiapayment_generator_can_generate_payload_custom_separator() } [Fact] - [Category("PayloadGenerator/RussiaPaymentOrder")] public void russiapayment_generator_should_throw_no_separator_exception() { var account = "40702810138250123017"; @@ -3344,7 +3152,6 @@ public void russiapayment_generator_should_throw_no_separator_exception() } [Fact] - [Category("PayloadGenerator/RussiaPaymentOrder")] public void russiapayment_generator_should_throw_data_too_long_exception() { var account = "40702810138250123017"; @@ -3363,7 +3170,6 @@ public void russiapayment_generator_should_throw_data_too_long_exception() } [Fact] - [Category("PayloadGenerator/RussiaPaymentOrder")] public void russiapayment_generator_should_throw_no_data_too_long_exception() { var account = "40702810138250123017"; @@ -3387,7 +3193,6 @@ public void russiapayment_generator_should_throw_no_data_too_long_exception() } [Fact] - [Category("PayloadGenerator/RussiaPaymentOrder")] public void russiapayment_generator_should_throw_must_not_be_null_exception() { string account = null; @@ -3403,7 +3208,6 @@ public void russiapayment_generator_should_throw_must_not_be_null_exception() } [Fact] - [Category("PayloadGenerator/RussiaPaymentOrder")] public void russiapayment_generator_should_throw_unmatched_pattern_exception() { string account = "40702810138250123017"; @@ -3419,7 +3223,6 @@ public void russiapayment_generator_should_throw_unmatched_pattern_exception() } [Fact] - [Category("PayloadGenerator/RussiaPaymentOrder")] public void russiapayment_generator_can_generate_payload_some_additional_fields() { var account = "40702810138250123017"; @@ -3442,7 +3245,6 @@ public void russiapayment_generator_can_generate_payload_some_additional_fields( } [Fact] - [Category("PayloadGenerator/RussiaPaymentOrder")] public void russiapayment_generator_can_generate_payload_all_additional_fields_pt1() { var account = "40702810138250123017"; @@ -3473,7 +3275,6 @@ public void russiapayment_generator_can_generate_payload_all_additional_fields_p } [Fact] - [Category("PayloadGenerator/RussiaPaymentOrder")] public void russiapayment_generator_can_generate_payload_all_additional_fields_pt2() { var account = "40702810138250123017"; @@ -3505,7 +3306,6 @@ public void russiapayment_generator_can_generate_payload_all_additional_fields_p [Fact] - [Category("PayloadGenerator/RussiaPaymentOrder")] public void russiapayment_generator_can_generate_payload_all_additional_fields_pt3() { var account = "40702810138250123017"; @@ -3534,7 +3334,6 @@ public void russiapayment_generator_can_generate_payload_all_additional_fields_p } [Fact] - [Category("PayloadGenerator/RussiaPaymentOrder")] public void russiapayment_generator_can_generate_payload_all_additional_fields_pt4() { var account = "40702810138250123017"; @@ -3563,7 +3362,6 @@ public void russiapayment_generator_can_generate_payload_all_additional_fields_p } [Fact] - [Category("PayloadGenerator/RussiaPaymentOrder")] public void russiapayment_generator_can_generate_payload_all_additional_fields_pt5() { var account = "40702810138250123017"; @@ -3587,6 +3385,3 @@ public void russiapayment_generator_can_generate_payload_all_additional_fields_p .ShouldBe($"ST00012|Name={name}|PersonalAcc={account}|BankName={bankName}|BIC={bic}|CorrespAcc={correspAcc}|TaxPeriod=31|TaxPaytKind=99|SpecFio=T. Eacher|UIN=1a2b|TechCode=ГИБДД_налоги_пошлины_бюджетные_платежи|"); } } - - - diff --git a/QRCoderTests/PngByteQRCodeRendererTests.cs b/QRCoderTests/PngByteQRCodeRendererTests.cs index 1cebf94c..d73b8e43 100644 --- a/QRCoderTests/PngByteQRCodeRendererTests.cs +++ b/QRCoderTests/PngByteQRCodeRendererTests.cs @@ -1,7 +1,6 @@ using Xunit; using QRCoder; using Shouldly; -using QRCoderTests.Helpers.XUnitExtenstions; using QRCoderTests.Helpers; #if !NETCOREAPP1_1 using System.Drawing; @@ -22,7 +21,6 @@ public class PngByteQRCodeRendererTests [Fact] - [Category("QRRenderer/PngByteQRCode")] public void can_render_pngbyte_qrcode_blackwhite() { //Create QR code @@ -42,7 +40,6 @@ public void can_render_pngbyte_qrcode_blackwhite() } [Fact] - [Category("QRRenderer/PngByteQRCode")] public void can_render_pngbyte_qrcode_color() { //Create QR code @@ -63,7 +60,6 @@ public void can_render_pngbyte_qrcode_color() #if !NETCOREAPP1_1 [Fact] - [Category("QRRenderer/PngByteQRCode")] public void can_render_pngbyte_qrcode_drawing_color() { //Create QR code @@ -87,7 +83,6 @@ public void can_render_pngbyte_qrcode_drawing_color() [Fact] - [Category("QRRenderer/PngByteQRCode")] public void can_render_pngbyte_qrcode_color_with_alpha() { //Create QR code @@ -107,7 +102,6 @@ public void can_render_pngbyte_qrcode_color_with_alpha() } [Fact] - [Category("QRRenderer/PngByteQRCode")] public void can_render_pngbyte_qrcode_color_without_quietzones() { //Create QR code @@ -129,7 +123,6 @@ public void can_render_pngbyte_qrcode_color_without_quietzones() } [Fact] - [Category("QRRenderer/PngByteQRCode")] public void can_instantate_pngbyte_qrcode_parameterless() { var pngCode = new PngByteQRCode(); @@ -138,7 +131,6 @@ public void can_instantate_pngbyte_qrcode_parameterless() } [Fact] - [Category("QRRenderer/PngByteQRCode")] public void can_render_pngbyte_qrcode_from_helper() { //Create QR code @@ -156,7 +148,6 @@ public void can_render_pngbyte_qrcode_from_helper() } [Fact] - [Category("QRRenderer/PngByteQRCode")] public void can_render_pngbyte_qrcode_from_helper_2() { //Create QR code @@ -172,8 +163,4 @@ public void can_render_pngbyte_qrcode_from_helper_2() result.ShouldBe("1d81b3d52fc64543186558eee7d9494b"); #endif } - } - - - diff --git a/QRCoderTests/PostscriptQRCodeRendererTests.cs b/QRCoderTests/PostscriptQRCodeRendererTests.cs index 4d76ee15..32c5ea00 100644 --- a/QRCoderTests/PostscriptQRCodeRendererTests.cs +++ b/QRCoderTests/PostscriptQRCodeRendererTests.cs @@ -5,7 +5,6 @@ using System.Text.RegularExpressions; using QRCoder; using QRCoderTests.Helpers; -using QRCoderTests.Helpers.XUnitExtenstions; using Shouldly; using Xunit; @@ -14,7 +13,6 @@ namespace QRCoderTests; public class PostscriptQRCodeRendererTests { [Fact] - [Category("QRRenderer/PostscriptQRCode")] public void can_render_postscript_qrcode_simple() { //Create QR code @@ -27,7 +25,6 @@ public void can_render_postscript_qrcode_simple() } [Fact] - [Category("QRRenderer/PostscriptQRCode")] public void can_render_postscript_qrcode_eps() { //Create QR code @@ -40,7 +37,6 @@ public void can_render_postscript_qrcode_eps() } [Fact] - [Category("QRRenderer/PostscriptQRCode")] public void can_render_postscript_qrcode_size() { //Create QR code @@ -53,7 +49,6 @@ public void can_render_postscript_qrcode_size() } [Fact] - [Category("QRRenderer/PostscriptQRCode")] public void can_render_postscript_qrcode_size_no_quiet_zones() { //Create QR code @@ -66,7 +61,6 @@ public void can_render_postscript_qrcode_size_no_quiet_zones() } [Fact] - [Category("QRRenderer/PostscriptQRCode")] public void can_render_postscript_qrcode_colors() { //Create QR code diff --git a/QRCoderTests/QRCodeRendererTests.cs b/QRCoderTests/QRCodeRendererTests.cs index 5576e394..c4f33b7a 100644 --- a/QRCoderTests/QRCodeRendererTests.cs +++ b/QRCoderTests/QRCodeRendererTests.cs @@ -2,7 +2,6 @@ using System.Drawing; using QRCoder; using QRCoderTests.Helpers; -using QRCoderTests.Helpers.XUnitExtenstions; using Shouldly; using Xunit; @@ -13,7 +12,6 @@ namespace QRCoderTests; public class QRCodeRendererTests { [Fact] - [Category("QRRenderer/QRCode")] public void can_create_qrcode_standard_graphic() { var gen = new QRCodeGenerator(); @@ -25,7 +23,6 @@ public void can_create_qrcode_standard_graphic() } [Fact] - [Category("QRRenderer/QRCode")] public void can_create_qrcode_standard_graphic_hex() { var gen = new QRCodeGenerator(); @@ -38,7 +35,6 @@ public void can_create_qrcode_standard_graphic_hex() [Fact] - [Category("QRRenderer/QRCode")] public void can_create_qrcode_standard_graphic_without_quietzones() { var gen = new QRCodeGenerator(); @@ -51,7 +47,6 @@ public void can_create_qrcode_standard_graphic_without_quietzones() [Fact] - [Category("QRRenderer/QRCode")] public void can_create_qrcode_with_transparent_logo_graphic() { //Create QR code @@ -65,7 +60,6 @@ public void can_create_qrcode_with_transparent_logo_graphic() } [Fact] - [Category("QRRenderer/QRCode")] public void can_create_qrcode_with_non_transparent_logo_graphic() { //Create QR code @@ -79,7 +73,6 @@ public void can_create_qrcode_with_non_transparent_logo_graphic() } [Fact] - [Category("QRRenderer/QRCode")] public void can_create_qrcode_with_logo_and_with_transparent_border() { //Create QR code @@ -94,7 +87,6 @@ public void can_create_qrcode_with_logo_and_with_transparent_border() } [Fact] - [Category("QRRenderer/QRCode")] public void can_create_qrcode_with_logo_and_with_standard_border() { //Create QR code @@ -109,7 +101,6 @@ public void can_create_qrcode_with_logo_and_with_standard_border() } [Fact] - [Category("QRRenderer/QRCode")] public void can_create_qrcode_with_logo_and_with_custom_border() { //Create QR code @@ -123,9 +114,7 @@ public void can_create_qrcode_with_logo_and_with_custom_border() result.ShouldBe("e60bdaafe807889ca322d47146fe8300"); } - [Fact] - [Category("QRRenderer/QRCode")] public void can_instantate_qrcode_parameterless() { var svgCode = new QRCode(); @@ -134,7 +123,6 @@ public void can_instantate_qrcode_parameterless() } [Fact] - [Category("QRRenderer/QRCode")] public void can_render_qrcode_from_helper() { //Create QR code @@ -143,6 +131,5 @@ public void can_render_qrcode_from_helper() var result = HelperFunctions.BitmapToHash(bmp); result.ShouldBe("f2ed5073bd42dc012e442c0f750e9dae"); } - } #endif diff --git a/QRCoderTests/QRGeneratorTests.cs b/QRCoderTests/QRGeneratorTests.cs index 446c723e..56cf7ca7 100644 --- a/QRCoderTests/QRGeneratorTests.cs +++ b/QRCoderTests/QRGeneratorTests.cs @@ -5,7 +5,6 @@ using System.Reflection; using System.Text; using QRCoder; -using QRCoderTests.Helpers.XUnitExtenstions; using Shouldly; using Xunit; using ECCLevel = QRCoder.QRCodeGenerator.ECCLevel; @@ -17,7 +16,6 @@ namespace QRCoderTests; public class QRGeneratorTests { [Fact] - [Category("QRGenerator/Antilog")] public void validate_antilogtable() { var gen = new QRCodeGenerator(); @@ -366,7 +364,6 @@ public void can_encode_various_strings_various_ecc(int inputChars, ECCLevel eccL #endif [Fact] - [Category("QRGenerator/AlphanumDict")] public void validate_alphanumencdict() { var gen = new QRCodeGenerator(); @@ -381,7 +378,6 @@ public void validate_alphanumencdict() } [Fact] - [Category("QRGenerator/TextEncoding")] public void can_recognize_enconding_numeric() { var gen = new QRCodeGenerator(); @@ -393,7 +389,6 @@ public void can_recognize_enconding_numeric() [Fact] - [Category("QRGenerator/TextEncoding")] public void can_recognize_enconding_alphanumeric() { var gen = new QRCodeGenerator(); @@ -405,7 +400,6 @@ public void can_recognize_enconding_alphanumeric() [Fact] - [Category("QRGenerator/TextEncoding")] public void can_recognize_enconding_forced_bytemode() { var gen = new QRCodeGenerator(); @@ -417,7 +411,6 @@ public void can_recognize_enconding_forced_bytemode() [Fact] - [Category("QRGenerator/TextEncoding")] public void can_recognize_enconding_byte() { var gen = new QRCodeGenerator(); @@ -428,7 +421,6 @@ public void can_recognize_enconding_byte() } [Fact] - [Category("QRGenerator/TextEncoding")] public void can_encode_numeric() { var gen = new QRCodeGenerator(); @@ -438,7 +430,6 @@ public void can_encode_numeric() } [Fact] - [Category("QRGenerator/TextEncoding")] public void can_encode_numeric_2() { var gen = new QRCodeGenerator(); @@ -448,7 +439,6 @@ public void can_encode_numeric_2() } [Fact] - [Category("QRGenerator/TextEncoding")] public void can_encode_numeric_3() { var gen = new QRCodeGenerator(); @@ -458,7 +448,6 @@ public void can_encode_numeric_3() } [Fact] - [Category("QRGenerator/TextEncoding")] public void can_encode_alphanumeric() { var gen = new QRCodeGenerator(); @@ -468,7 +457,6 @@ public void can_encode_alphanumeric() } [Fact] - [Category("QRGenerator/TextEncoding")] public void can_encode_byte_long() { var gen = new QRCodeGenerator(); @@ -478,7 +466,6 @@ public void can_encode_byte_long() } [Fact] - [Category("QRGenerator/TextEncoding")] public void can_encode_byte() { var gen = new QRCodeGenerator(); @@ -488,7 +475,6 @@ public void can_encode_byte() } [Fact] - [Category("QRGenerator/TextEncoding")] public void can_encode_utf8() { var gen = new QRCodeGenerator(); @@ -498,7 +484,6 @@ public void can_encode_utf8() } [Fact] - [Category("QRGenerator/TextEncoding")] public void can_encode_utf8_bom() { var gen = new QRCodeGenerator(); @@ -508,7 +493,6 @@ public void can_encode_utf8_bom() } [Fact] - [Category("QRGenerator/TextEncoding")] public void can_generate_from_bytes() { byte[] test_data = { 49, 50, 51, 65, 66, 67 }; //123ABC @@ -519,7 +503,6 @@ public void can_generate_from_bytes() } [Fact] - [Category("QRGenerator/TextEncoding")] public void trim_leading_zeros_works() { var gen = new QRCodeGenerator(); @@ -529,7 +512,6 @@ public void trim_leading_zeros_works() } [Fact] - [Category("QRGenerator/TextEncoding")] public void isValidIso_works() { // see private method: QRCodeGenerator.IsValidISO @@ -555,7 +537,6 @@ bool IsValidISO(string input) } [Fact] - [Category("QRGenerator/EccLevel")] public void ecc_level_from_payload_works() { var stringValue = "this is a test"; @@ -639,6 +620,3 @@ public static string ToBitString(this BitArray bits) return sb.ToString(); } } - - - diff --git a/QRCoderTests/SvgQRCodeRendererTests.cs b/QRCoderTests/SvgQRCodeRendererTests.cs index 6b91452e..a7f8b3db 100644 --- a/QRCoderTests/SvgQRCodeRendererTests.cs +++ b/QRCoderTests/SvgQRCodeRendererTests.cs @@ -4,18 +4,14 @@ using System.IO; using QRCoder; using QRCoderTests.Helpers; -using QRCoderTests.Helpers.XUnitExtenstions; using Shouldly; using Xunit; - namespace QRCoderTests; - public class SvgQRCodeRendererTests { [Fact] - [Category("QRRenderer/SvgQRCode")] public void can_render_svg_qrcode_simple() { //Create QR code @@ -28,7 +24,6 @@ public void can_render_svg_qrcode_simple() } [Fact] - [Category("QRRenderer/SvgQRCode")] public void can_render_svg_qrcode() { //Create QR code @@ -41,7 +36,6 @@ public void can_render_svg_qrcode() } [Fact] - [Category("QRRenderer/SvgQRCode")] public void can_render_svg_qrcode_viewbox_mode() { //Create QR code @@ -54,7 +48,6 @@ public void can_render_svg_qrcode_viewbox_mode() } [Fact] - [Category("QRRenderer/SvgQRCode")] public void can_render_svg_qrcode_viewbox_mode_viewboxattr() { //Create QR code @@ -67,7 +60,6 @@ public void can_render_svg_qrcode_viewbox_mode_viewboxattr() } [Fact] - [Category("QRRenderer/SvgQRCode")] public void can_render_svg_qrcode_without_quietzones() { //Create QR code @@ -80,7 +72,6 @@ public void can_render_svg_qrcode_without_quietzones() } [Fact] - [Category("QRRenderer/SvgQRCode")] public void can_render_svg_qrcode_without_quietzones_hex() { //Create QR code @@ -94,7 +85,6 @@ public void can_render_svg_qrcode_without_quietzones_hex() #if SYSTEM_DRAWING && !NET5_0_OR_GREATER // .NET 5+ does not encode PNG images in a deterministic way, so the hash may be different across different runs [Fact] - [Category("QRRenderer/SvgQRCode")] public void can_render_svg_qrcode_with_png_logo_bitmap() { //Create QR code @@ -113,7 +103,6 @@ public void can_render_svg_qrcode_with_png_logo_bitmap() } [Fact] - [Category("QRRenderer/SvgQRCode")] public void can_render_svg_qrcode_with_png_logo_bitmap_without_background() { //Create QR code @@ -132,7 +121,6 @@ public void can_render_svg_qrcode_with_png_logo_bitmap_without_background() } [Fact] - [Category("QRRenderer/SvgQRCode")] public void can_render_svg_qrcode_with_png_logo_bitmap_without_quietzones() { //Create QR code @@ -152,7 +140,6 @@ public void can_render_svg_qrcode_with_png_logo_bitmap_without_quietzones() #endif [Fact] - [Category("QRRenderer/SvgQRCode")] public void can_render_svg_qrcode_with_png_logo_bytearray() { //Create QR code @@ -171,7 +158,6 @@ public void can_render_svg_qrcode_with_png_logo_bytearray() } [Fact] - [Category("QRRenderer/SvgQRCode")] public void can_render_svg_qrcode_with_svg_logo_embedded() { //Create QR code @@ -190,7 +176,6 @@ public void can_render_svg_qrcode_with_svg_logo_embedded() } [Fact] - [Category("QRRenderer/SvgQRCode")] public void can_render_svg_qrcode_with_svg_logo_image_tag() { //Create QR code @@ -208,7 +193,6 @@ public void can_render_svg_qrcode_with_svg_logo_image_tag() } [Fact] - [Category("QRRenderer/SvgQRCode")] public void can_instantate_parameterless() { var svgCode = new SvgQRCode(); @@ -217,7 +201,6 @@ public void can_instantate_parameterless() } [Fact] - [Category("QRRenderer/SvgQRCode")] public void can_render_svg_qrcode_from_helper() { //Create QR code @@ -228,6 +211,3 @@ public void can_render_svg_qrcode_from_helper() } } #endif - - - diff --git a/QRCoderTests/XamlQRCodeRendererTests.cs b/QRCoderTests/XamlQRCodeRendererTests.cs index eb1eda2a..7929c91b 100644 --- a/QRCoderTests/XamlQRCodeRendererTests.cs +++ b/QRCoderTests/XamlQRCodeRendererTests.cs @@ -2,18 +2,14 @@ using QRCoder; using QRCoder.Xaml; using QRCoderTests.Helpers; -using QRCoderTests.Helpers.XUnitExtenstions; using Shouldly; using Xunit; namespace QRCoderTests; - public class XamlQRCodeRendererTests { - [Fact] - [Category("QRRenderer/XamlQRCode")] public void can_create_xaml_qrcode_standard_graphic() { var gen = new QRCodeGenerator(); @@ -27,7 +23,6 @@ public void can_create_xaml_qrcode_standard_graphic() [Fact] - [Category("QRRenderer/XamlQRCode")] public void can_instantate_qrcode_parameterless() { var svgCode = new XamlQRCode(); @@ -37,7 +32,6 @@ public void can_instantate_qrcode_parameterless() /* [Fact] - [Category("QRRenderer/XamlQRCode")] public void can_render_qrcode_from_helper() { //Create QR code