1
我正在使用MSpec和Visual Studio 2010与Resharper 5.1。我已经将MSpec测试运行器插件安装到了resharper中,但它无法正常工作。下面是我的测试:MSpec&Resharper测试运行器问题
public class when_I_click_create_investment_manager : with_main_window
{
Establish I_am_viewing_the_main_page =() => mainWindowViewModel = new MainWindowViewModel();
Because the_user_clicks_create =() => mainWindowViewModel.CreateInvestmentManager.Execute(null);
It should_show_the_investment_manager_details_screen =() => mainWindowViewModel.CurrentWorkspace.ShouldBeOfType(typeof(IInvestmentManagerDetailsViewModel));
It should_set_the_edit_screen_to_create_mode =() => mainWindowViewModel.CurrentWorkspace.Mode.ShouldEqual(WorkspaceMode.New);
}
public class with_main_window
{
protected static IMainWindowViewModel mainWindowViewModel;
}
但测试运行不运行我的断言,但仍显示操作成功,输出我得到的是:
alt text http://i33.tinypic.com/vwrbtg.png
谢谢你是对的。我的规格项目引用了v0.2,它需要v0.3。 – Charlie 2010-08-06 14:35:45
我遇到了与最新版本 – 2010-10-19 11:48:24
完全相同的问题请确保您的项目的MSpec程序集与ReSharper插件目录中的程序集相匹配。 – 2010-10-20 16:54:57