Skip to content

Commit 6d895ad

Browse files
committed
Fix tests locally
1 parent dd35a3b commit 6d895ad

File tree

3 files changed

+0
-48
lines changed

3 files changed

+0
-48
lines changed

QRCoderTests/ArtQRCodeRendererTests.cs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ public void can_create_standard_qrcode_graphic()
2323
var bmp = new ArtQRCode(data).GetGraphic(10);
2424

2525
var result = HelperFunctions.BitmapToHash(bmp);
26-
#if NET35_OR_GREATER || NET40_OR_GREATER
27-
result.ShouldBe("11ebdda91b9632d016798cb6de2f5339");
28-
#else
2926
result.ShouldBe("cb38c3156eaf13cdfba699bdafc3a84c");
30-
#endif
3127
}
3228

3329
[Fact]
@@ -40,11 +36,7 @@ public void can_create_standard_qrcode_graphic_with_custom_finder()
4036
var bmp = new ArtQRCode(data).GetGraphic(10, Color.Black, Color.White, Color.Transparent, finderPatternImage: finder);
4137

4238
var result = HelperFunctions.BitmapToHash(bmp);
43-
#if NET35_OR_GREATER || NET40_OR_GREATER
44-
result.ShouldBe("c54a7389ae995abc838f0d228acc3bad");
45-
#else
4639
result.ShouldBe("1102c0c6f235eaf4c3ac639f82f17bfa");
47-
#endif
4840
}
4941

5042
[Fact]
@@ -56,11 +48,7 @@ public void can_create_standard_qrcode_graphic_without_quietzone()
5648
var bmp = new ArtQRCode(data).GetGraphic(10, Color.Black, Color.White, Color.Transparent, drawQuietZones: false);
5749

5850
var result = HelperFunctions.BitmapToHash(bmp);
59-
#if NET35_OR_GREATER || NET40_OR_GREATER
60-
result.ShouldBe("550f31b988ff12d5f8429ef19d9d5a0c");
61-
#else
6251
result.ShouldBe("632315c8695416fc82fe06a202688433");
63-
#endif
6452
}
6553

6654
[Fact]
@@ -74,11 +62,7 @@ public void can_create_standard_qrcode_graphic_with_background()
7462

7563
var result = HelperFunctions.BitmapToHash(bmp);
7664

77-
#if NET35_OR_GREATER || NET40_OR_GREATER
78-
result.ShouldBe("2caa9c0ee8fcb4a93841debb58cf41bc");
79-
#else
8065
result.ShouldBe("bbea08507282773175cfe7b52f0ddae4");
81-
#endif
8266
}
8367

8468
[Fact]
@@ -112,11 +96,7 @@ public void can_render_artqrcode_from_helper()
11296
var bmp = ArtQRCodeHelper.GetQRCode("A", 10, Color.Black, Color.White, Color.Transparent, QRCodeGenerator.ECCLevel.L);
11397

11498
var result = HelperFunctions.BitmapToHash(bmp);
115-
#if NET35_OR_GREATER || NET40_OR_GREATER
116-
result.ShouldBe("fea51114bc4ff893542a1c0574c82a07");
117-
#else
11899
result.ShouldBe("57ecaa9bdeadcdcbeac8a19d734907ff");
119-
#endif
120100
}
121101
}
122102
}

QRCoderTests/PngByteQRCodeRendererTests.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,7 @@ public void can_render_pngbyte_qrcode_color_without_quietzones()
107107
var bmp = (Bitmap)Image.FromStream(mStream);
108108
bmp.MakeTransparent(Color.Transparent);
109109
var result = HelperFunctions.BitmapToHash(bmp);
110-
#if NET35_OR_GREATER || NET40_OR_GREATER
111-
result.ShouldBe("75be11d582575617d2490c54b69e844e");
112-
#else
113110
result.ShouldBe("fbbc8255ebf3e4f4a1d21f0dd15f76f8");
114-
#endif
115111
}
116112
#endif
117113
}

QRCoderTests/QRCodeRendererTests.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,7 @@ public void can_create_qrcode_standard_graphic_without_quietzones()
4646
var bmp = new QRCode(data).GetGraphic(5, Color.Black, Color.White, false);
4747

4848
var result = HelperFunctions.BitmapToHash(bmp);
49-
#if NET35_OR_GREATER || NET40_OR_GREATER
50-
result.ShouldBe("329e1664f57cbe7332d8d4db04c1d480");
51-
#else
5249
result.ShouldBe("d703e54a0ba541c6ea69e3d316e394e7");
53-
#endif
5450
}
5551

5652

@@ -65,11 +61,7 @@ public void can_create_qrcode_with_transparent_logo_graphic()
6561
var bmp = new QRCode(data).GetGraphic(10, Color.Black, Color.Transparent, icon: (Bitmap)Image.FromFile(HelperFunctions.GetAssemblyPath() + "\\assets\\noun_software engineer_2909346.png"));
6662
//Used logo is licensed under public domain. Ref.: https://thenounproject.com/Iconathon1/collection/redefining-women/?i=2909346
6763
var result = HelperFunctions.BitmapToHash(bmp);
68-
#if NET35_OR_GREATER || NET40_OR_GREATER
69-
result.ShouldBe("ee65d96c3013f6032b561cc768251eef");
70-
#else
7164
result.ShouldBe("150f8fc7dae4487ba2887d2b2bea1c25");
72-
#endif
7365
}
7466

7567
[Fact]
@@ -83,11 +75,7 @@ public void can_create_qrcode_with_non_transparent_logo_graphic()
8375
//Used logo is licensed under public domain. Ref.: https://thenounproject.com/Iconathon1/collection/redefining-women/?i=2909346
8476

8577
var result = HelperFunctions.BitmapToHash(bmp);
86-
#if NET35_OR_GREATER || NET40_OR_GREATER
87-
result.ShouldBe("1d718f06f904af4a46748f02af2d4eec");
88-
#else
8978
result.ShouldBe("c46a7ec51bf978d7a882059c322ca69d");
90-
#endif
9179
}
9280

9381
[Fact]
@@ -102,11 +90,7 @@ public void can_create_qrcode_with_logo_and_with_transparent_border()
10290
var bmp = new QRCode(data).GetGraphic(10, Color.Black, Color.Transparent, icon: logo, iconBorderWidth: 6);
10391
//Used logo is licensed under public domain. Ref.: https://thenounproject.com/Iconathon1/collection/redefining-women/?i=2909346
10492
var result = HelperFunctions.BitmapToHash(bmp);
105-
#if NET35_OR_GREATER || NET40_OR_GREATER
106-
result.ShouldBe("ee65d96c3013f6032b561cc768251eef");
107-
#else
10893
result.ShouldBe("150f8fc7dae4487ba2887d2b2bea1c25");
109-
#endif
11094
}
11195

11296
[Fact]
@@ -121,11 +105,7 @@ public void can_create_qrcode_with_logo_and_with_standard_border()
121105
var bmp = new QRCode(data).GetGraphic(10, Color.Black, Color.White, icon: logo, iconBorderWidth: 6);
122106
//Used logo is licensed under public domain. Ref.: https://thenounproject.com/Iconathon1/collection/redefining-women/?i=2909346
123107
var result = HelperFunctions.BitmapToHash(bmp);
124-
#if NET35_OR_GREATER || NET40_OR_GREATER
125-
result.ShouldBe("52207bd86ca5a532fb2095dbaa0ae04c");
126-
#else
127108
result.ShouldBe("1c926ea1d48f42fdf8e6f1438b774cdd");
128-
#endif
129109
}
130110

131111
[Fact]
@@ -140,11 +120,7 @@ public void can_create_qrcode_with_logo_and_with_custom_border()
140120
var bmp = new QRCode(data).GetGraphic(10, Color.Black, Color.Transparent, icon: logo, iconBorderWidth: 6, iconBackgroundColor: Color.DarkGreen);
141121
//Used logo is licensed under public domain. Ref.: https://thenounproject.com/Iconathon1/collection/redefining-women/?i=2909346
142122
var result = HelperFunctions.BitmapToHash(bmp);
143-
#if NET35_OR_GREATER || NET40_OR_GREATER
144-
result.ShouldBe("d2f20d34a973d92b9c3e05db1393b331");
145-
#else
146123
result.ShouldBe("9a06bfbb72df999b6290b5af5c4037cb");
147-
#endif
148124
}
149125

150126

0 commit comments

Comments
 (0)