Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have developed a sample WPF application using Prism 7.1 and I want to use a unit testing framework (NUnit) for testing my sample WPF application.

What I have tried:

<pre>I tried to do unit testing using a test project for a sample WPF application but I can't able to find the prism window to get all the controls for executing the test cases.

Please let me know if you have any solutions
Posted
Updated 1-Sep-18 7:39am
Comments
[no name] 30-Aug-18 13:13pm    
I think you build the "unit" test; then "unit test" "something".

Building the app, then "unit testing", is when the bug is already out of the bag.

1 solution

It is not clear what your question is so perhaps you can provide an example of what you are trying to do. What exactly do you mean by "find the prism window"?


If you are attempting to unit test the GUI (graphic user interface) then this is not what NUnit was designed for.

If you are attempting to unit test your model and view model classes then this is something you can do with NUnit.

Again, if you can provide an example of what you want then this can help clarify what your question is.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900