Freitag, 1. Oktober 2010

Assembly??

Question:

I have used White 2.0, but the version of nunit.framework.dll in White 2.0 is 2.4.6.0, so there are some attributes in NUnit, which can not be used,

e.g. Values, Sequential. Those can make the test case repeatable. I have changed the nunit.framework.dll into 2.5.7.10213 in the Reference in Visual Studio.

But the problem comes. When I use Nunit.exe to run the test case. At the beginning, it shows always

"COI.BusinessFlow.Autotests.TestCases.GeneralBusinessOperationsTest.StartClientTest:
SetUp : System.IO.FileLoadException : The file or Assembly "nunit.framework, Version=2.4.6.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" or the dependence of it is not found. The Manifestdefinition of the assembly does not match with the reference of the Assembly. (Exception of HRESULT: 0x80131040)"

I don't quite understand, which Assemly it means. I don't think it is the Assembly of my visual C# project and "White.Core.dll.config", because there is no version information about NUnit. How can I fix this problem?

Answer:
have find how to solve the problem. I have thought others.

But the problem is caused by "Verify.AreEqual()" in White.NUnit.dll.

I don't know what is the difference between White.NUnit.dll and nunit.framework.dll.

Verify function is the only one in White.NUnit.dll, but it makes the above problem. But why?

Keine Kommentare: