我想为我的WP7项目添加单元测试。我按照http://smartypantscoding.com/a-cheat-sheet-for-unit-testing-silverlight-apps-on-windows-phone-7上的教程开始了单元测试。但是我无法让它运行。
我按照教程中的所有步骤并创建了基本测试。但是一旦我想要启动项目,Visual Studio就会报错: XamlParseException异常发生 找不到名称/关键字typeNameConverter的资源[行:47 位置:24]
第47行指的是初始CreateTestPage。
我按照教程中的所有步骤并创建了基本测试。但是一旦我想要启动项目,Visual Studio就会报错: XamlParseException异常发生 找不到名称/关键字typeNameConverter的资源[行:47 位置:24]
第47行指的是初始CreateTestPage。
private void MainPage_Loaded(object sender, RoutedEventArgs e)
{
SystemTray.IsVisible = false;
Line47: var testPage = UnitTestSystem.CreateTestPage() as IMobileTestPage;
BackKeyPress += (x, xe) => xe.Cancel = testPage.NavigateBack();
(Application.Current.RootVisual as PhoneApplicationFrame).Content = testPage;
}
希望你能帮我解决问题!谢谢!