I have downloaded the latest version of the Testing Framework and I am trying to create my first test a WPF application.
I get a the following error when I try to run the test.
Test Name: TestMethod1
Test FullName: UnitTestProject1.UnitTest1.TestMethod1
Test Source: c:\Dev\PARM\UnitTestProject1\UnitTest1.cs : line 15
Test Outcome: Failed
Test Duration: 0:00:00.0284715
Result Message:
Test method UnitTestProject1.UnitTest1.TestMethod1 threw exception:
System.NullReferenceException: Object reference not set to an instance of an object.
Result StackTrace: at UnitTestProject1.UnitTest1.TestMethod1() in c:\Dev\PARM\UnitTestProject1\UnitTest1.cs:line 16
My test method is:
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.TestTemplates;
using ArtOfTest.WebAii.Wpf;
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
WpfApplication wpfApp2 = Manager.Current.LaunchNewApplication(@"C:\Dev\PARM\PARM\bin\Debug\PARM.exe");
}
}
}