Why Is Asserting Resolved UIColor Failing After Changing UIUserInterfaceStyle in Unit Test?

I am working on a project that uses named color assets, and I am responsible for updating the unit tests that assert the correct color values. We have an XCTestCase subclass (BaseXCTestCase) that has a window property, which is set to a value of UIApplication.shared.firstKeyWindow: var window = UIApplication.shared.firstKeyWindow! firstKeyWindow is defined as windows.filter {… Read More Why Is Asserting Resolved UIColor Failing After Changing UIUserInterfaceStyle in Unit Test?