Skip to content

Commit

Permalink
Cleaned test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
codebude committed Apr 24, 2024
1 parent f7610da commit 538301d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions QRCoderTests/SvgQRCodeRendererTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void can_render_svg_qrcode_with_png_logo_bitmap()
logoObj.GetMediaType().ShouldBe<SvgQRCode.SvgLogo.MediaType>(SvgQRCode.SvgLogo.MediaType.PNG);

var svg = new SvgQRCode(data).GetGraphic(10, Color.DarkGray, Color.White, logo: logoObj);
File.WriteAllText(@"C:\Users\netbl\Downloads\1.svg", svg);

var result = HelperFunctions.StringToHash(svg);
result.ShouldBe("78e02e8ba415f15817d5ed88c4afca31");
}
Expand All @@ -127,7 +127,7 @@ public void can_render_svg_qrcode_with_png_logo_bitmap_without_background()
logoObj.GetMediaType().ShouldBe<SvgQRCode.SvgLogo.MediaType>(SvgQRCode.SvgLogo.MediaType.PNG);

var svg = new SvgQRCode(data).GetGraphic(10, Color.DarkGray, Color.White, logo: logoObj);
File.WriteAllText(@"C:\Users\netbl\Downloads\2.svg", svg);

var result = HelperFunctions.StringToHash(svg);
result.ShouldBe("f221b2baecc2883f8e8ae54f12ba701b");
}
Expand All @@ -146,7 +146,7 @@ public void can_render_svg_qrcode_with_png_logo_bitmap_without_quietzones()
logoObj.GetMediaType().ShouldBe<SvgQRCode.SvgLogo.MediaType>(SvgQRCode.SvgLogo.MediaType.PNG);

var svg = new SvgQRCode(data).GetGraphic(10, Color.Black, Color.White, drawQuietZones: false, logo: logoObj);
File.WriteAllText(@"C:\Users\netbl\Downloads\3.svg", svg);

var result = HelperFunctions.StringToHash(svg);
result.ShouldBe("8b4d114136c7fd26e0b34e5a15daac3b");
}
Expand Down

0 comments on commit 538301d

Please sign in to comment.