TEST_METHOD(TestMethod1)
{
// TODO: Your test code here
auto directAppSource = ref new DirectXAppSource();
CoreApplication::Run(directAppSource);
}
ref class DirectXAppSource : Windows::ApplicationModel::Core::IFrameworkViewSource
{
public:
virtual Windows::ApplicationModel::Core::IFrameworkView^ CreateView();
};
When run the testmethod, it will show "Message:Unhandled WinRT Exception:Platform::COMException".
How to use Metro style Direct3D in the unit test project?