You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
Test_ConstrainedBox_AllInfinite_AspectBothFallback fails on DPI other than 100%.
Failed Test_ConstrainedBox_AllInfinite_AspectBothFallback [45 ms]
Error Message:
Assert.AreEqual failed. Expected a difference no greater than <0.01> between expected value <493.6666564941406> and actual value <493.3333435058594>. Actual width does not meet expected value of 493.6666564941406
Stack Trace:
at UnitTests.UWP.UI.Controls.Test_ConstrainedBox.<Test_ConstrainedBox_AllInfinite_AspectBothFallback>b__12_0()
at CommunityToolkit.WinUI.DispatcherQueueExtensions.<>c__DisplayClass2_0.<b__1>d.MoveNext()
--- End of stack trace from previous location ---
at UnitTests.UWP.UI.Controls.Test_ConstrainedBox.Test_ConstrainedBox_AllInfinite_AspectBothFallback()
at Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.ThreadOperations.ExecuteWithAbortSafety(Action action)
Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work:
Describe the bug
Test_ConstrainedBox_AllInfinite_AspectBothFallback fails on DPI other than 100%.
Failed Test_ConstrainedBox_AllInfinite_AspectBothFallback [45 ms]
Error Message:
Assert.AreEqual failed. Expected a difference no greater than <0.01> between expected value <493.6666564941406> and actual value <493.3333435058594>. Actual width does not meet expected value of 493.6666564941406
Stack Trace:
at UnitTests.UWP.UI.Controls.Test_ConstrainedBox.<Test_ConstrainedBox_AllInfinite_AspectBothFallback>b__12_0()
at CommunityToolkit.WinUI.DispatcherQueueExtensions.<>c__DisplayClass2_0.<b__1>d.MoveNext()
--- End of stack trace from previous location ---
at UnitTests.UWP.UI.Controls.Test_ConstrainedBox.Test_ConstrainedBox_AllInfinite_AspectBothFallback()
at Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.ThreadOperations.ExecuteWithAbortSafety(Action action)
Steps to Reproduce
Steps to reproduce the behavior:
Expected behavior
Tests pass on any DPI
Environment
NuGet Package(s):
Package Version(s):
Windows 10 Build Number:
App min and target version:
Device form factor:
Visual Studio version:
Additional context