From 538301dca1aca1632a914a45cbc43f470a24099d Mon Sep 17 00:00:00 2001 From: Raffael Herrmann Date: Wed, 24 Apr 2024 23:34:29 +0200 Subject: [PATCH] Cleaned test cases --- QRCoderTests/SvgQRCodeRendererTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/QRCoderTests/SvgQRCodeRendererTests.cs b/QRCoderTests/SvgQRCodeRendererTests.cs index 68e61a55..158d9bc9 100644 --- a/QRCoderTests/SvgQRCodeRendererTests.cs +++ b/QRCoderTests/SvgQRCodeRendererTests.cs @@ -108,7 +108,7 @@ public void can_render_svg_qrcode_with_png_logo_bitmap() logoObj.GetMediaType().ShouldBe(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"); } @@ -127,7 +127,7 @@ public void can_render_svg_qrcode_with_png_logo_bitmap_without_background() logoObj.GetMediaType().ShouldBe(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"); } @@ -146,7 +146,7 @@ public void can_render_svg_qrcode_with_png_logo_bitmap_without_quietzones() logoObj.GetMediaType().ShouldBe(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"); }