尝试运行时,我得到以下输出 nunit-console Testsuite.sln
NUnit version 2.4.8
Copyright (C) 2002-2007 Charlie Poole.
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.
Runtime Environment -
OS Version: Unix 11.4.0.0
CLR Version: 2.0.50727.1433 ( 2.10.11 (mono-2-10/2baeee2 Wed Jan 16 16:40:16 EST 2013) )
Missing method .ctor in assembly /Users/administrator/Desktop/projectname/testsuite/bin/Debug/Testsuite.dll, type NUnit.Framework.TestFixtureAttribute
Can't find custom attr constructor image: /Users/administrator/Desktop/projectname/testsuite/bin/Debug/Testsuite.dll mtoken: 0x0a000004
Could not load file or assembly 'nunit.framework, Version=2.6.0.12051, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' or one of its dependencies.
有什么建议吗?从testrunner进行单声道测试开发工作没有问题。
答案 0 :(得分:3)
它没有找到你的nunit.framework.dll文件,我认为你有一个borked安装。你是怎么安装单声道的?你是如何安装NUnit的?
虽然我建议先修复mono / nunit安装,但可能的解决方法是:
MONO_PATH=/path/where/nunit/dlls/are nunit-console4 Testsuite.dll