Fix taskbar glyph bounds assertion
PR and Push Build/Test / build-and-test (push) Successful in 9m23s

This commit is contained in:
2026-06-05 11:28:04 +02:00
parent ed2eb36d07
commit 8af89a622d
+1 -1
View File
@@ -157,7 +157,7 @@ public sealed class TaskbarIconTests
} }
Assert.True(right >= left && bottom >= top, "Expected the icon to contain a visible white glyph."); Assert.True(right >= left && bottom >= top, "Expected the icon to contain a visible white glyph.");
return Rectangle.FromLTRB(left, top, right, bottom); return Rectangle.FromLTRB(left, top, right + 1, bottom + 1);
} }
private static double GetCenter(int start, int end) private static double GetCenter(int start, int end)