I have installed Testing Framework 2012.2, and am using Visual Studio 2010 and NUnit 2.62.
I have added an NUnit template to my project as described in the Testing Framework: Getting Started / Using NUnit documentation. When I do a build I get "The type or namespace name 'ArtOfTest' could not be found (are you missing a using directive or an assembly reference?)". I tried removing the reference to ArtOfTest.WebAii and re-adding it to the project but this made no difference.
I want to use the Testing Framework to test a WPF application. Is there any sample code with a simple WPF application and tests available, all of the samples I have been able to find seem to be either for testing web applications or just one or two lines which do not help a new user.
Update. I have identified the problem.
1. The reference to nunit.core had the wrong location, presumably because I am using a later version of NUnit. This is a minor point, and not the real problem.
2. I used VS 2010 to create a C# WPF project. This set the Target Framework to '.NET Framework 4 Clent Profile'. I had to change this to '.NET Framework 4'. This fixed the problem and I have at least got as far as opening the application and verifying that the main window caption is correct.
I have added an NUnit template to my project as described in the Testing Framework: Getting Started / Using NUnit documentation. When I do a build I get "The type or namespace name 'ArtOfTest' could not be found (are you missing a using directive or an assembly reference?)". I tried removing the reference to ArtOfTest.WebAii and re-adding it to the project but this made no difference.
I want to use the Testing Framework to test a WPF application. Is there any sample code with a simple WPF application and tests available, all of the samples I have been able to find seem to be either for testing web applications or just one or two lines which do not help a new user.
Update. I have identified the problem.
1. The reference to nunit.core had the wrong location, presumably because I am using a later version of NUnit. This is a minor point, and not the real problem.
2. I used VS 2010 to create a C# WPF project. This set the Target Framework to '.NET Framework 4 Clent Profile'. I had to change this to '.NET Framework 4'. This fixed the problem and I have at least got as far as opening the application and verifying that the main window caption is correct.