Dario Santarelli 8/26/2011

[WPF] Registering the “pack://” scheme in unit tests

Read Original

This technical article addresses a specific WPF unit testing issue where loading BAML resources fails with a UriFormatException due to the unregistered 'pack://' URI scheme. It provides a solution using TestInitialize to check and register the scheme by creating an Application instance if needed, enabling successful resource loading in tests.

[WPF] Registering the “pack://” scheme in unit tests

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week