I am writing a test method to launch a window application.
Below is my code
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
ProcessStartInfo P = new ProcessStartInfo("C:\\Windows\\System32\\notepad.exe");
Application app = Application.Launch(P);
}
}
}
After running this test a Notepad window opens up and then below exception is thrown
System.MissingMethodException: Method not found: 'System.Windows.Rect System.Windows.Automation.Provider.IRawElementProviderFragment.get_BoundingRectangle()