Testing
WinUI and WPF Testing: Unit Testing Windows Desktop Applications
Windows desktop apps built with WPF or WinUI 3 present a familiar testing challenge: UI frameworks couple logic to platform types that are hard to instantiate in tests. The solution for both frameworks is the same—MVVM architecture that concentrates testable logic in ViewModels, with UI tests reserved for integration