钻机:win7 64bit,vs2010,mvc v2,TestDriven.Net 3.0,Reshaper 5.0,MSpec 0.3
我最近开始了一个新项目,想使用 mspec。
(1) 将 Machine.Specifications.ReSharperRunner.5.0.dll 和 Machine.Specifications.dll 复制到 JetBrains\ReSharper\5.0\Bin\Plugins\Machine.Specifications (2) 将 Machine.Specifications.TDNetRunner.dll 复制到 TestDriven.NET 3\机器规格
当我尝试运行测试时,我收到此错误:System.IO.FileNotFoundException:无法加载文件或程序集'Machine.Specifications
我不知道这个错误来自哪里。
vs2010 menu -> ReSharper ->Plugins 显示了 MSpec 插件。vs2010 菜单 -> ReSharper -> 选项 -> 工具 -> 单元测试也显示了 MSpec 单元测试提供程序,但是当我像 MSTest 和 nUnit 一样单击它时,它没有显示任何详细信息。
我发现了这个: http: //marcinobel.com/index.php/mspec-bdd-installer/这不起作用。我也试过这个:http ://eduncan911.com/blog/registering-mspec-runners-for-testdriven-net-on-windows-x64.aspx这也没有用。现在我担心我搞砸了我的注册表。
有什么指导吗?
完整错误:
测试“F:Tests.OTBRadio.Tasks.AlbumTasksSpecs.when_the_album_tasks_are_asked_to_get_all.context”失败:无法加载文件或程序集“Machine.Specifications,版本=0.3.0.0,文化=中性,PublicKeyToken=null”或其依赖项之一。该系统找不到指定的文件。System.IO.FileNotFoundException:无法加载文件或程序集“Machine.Specifications,版本=0.3.0.0,文化=中性,PublicKeyToken=null”或其依赖项之一。该系统找不到指定的文件。文件名:TestDriven.TestRunner.AdaptorTestRunner 中 Machine.Specifications.TDNetRunner.SpecificationRunner.RunMember(ITestListener testListener, Assembly assembly, MemberInfo member) 中的“Machine.Specifications, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null”。