Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove category attribute from tests #568

Merged
merged 1 commit into from
Jun 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions QRCoderTests/ArtQRCodeRendererTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -84,7 +75,6 @@ public void should_throw_pixelfactor_oor_exception()
}

[Fact]
[Category("QRRenderer/ArtQRCode")]
public void can_instantate_parameterless()
{
var artCode = new ArtQRCode();
Expand All @@ -93,7 +83,6 @@ public void can_instantate_parameterless()
}

[Fact]
[Category("QRRenderer/ArtQRCode")]
public void can_render_artqrcode_from_helper()
{
//Create QR code
Expand Down
10 changes: 0 additions & 10 deletions QRCoderTests/AsciiQRCodeRendererTests.cs

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions QRCoderTests/Base64QRCodeRendererTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Drawing;
using System.IO;
using QRCoder;
using QRCoderTests.Helpers.XUnitExtenstions;
using Shouldly;
using Xunit;

Expand All @@ -20,7 +19,6 @@ public Base64QRCodeRendererTests()
}

[Fact]
[Category("QRRenderer/Base64QRCode")]
public void can_render_base64_qrcode_blackwhite()
{
var pngCodeGfx = new PngByteQRCode(_data).GetGraphic(5);
Expand All @@ -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);
Expand All @@ -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 });
Expand All @@ -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 });
Expand All @@ -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();
Expand Down
7 changes: 0 additions & 7 deletions QRCoderTests/BitmapByteQRCodeRendererTests.cs
Original file line number Diff line number Diff line change
@@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -46,5 +40,4 @@ public void can_render_bitmapbyte_qrcode_drawing_color()
var result = HelperFunctions.ByteArrayToHash(bmp);
result.ShouldBe("40cd208fc46aa726d6e98a2028ffd2b7");
}

}
40 changes: 0 additions & 40 deletions QRCoderTests/Helpers/CategoryDiscoverer.cs

This file was deleted.

Loading