c# - Nunit .net vs mono -
I wrote a simple test application using ASP.NET mvc with C #. The application uses MySQL to leak MySQL files using MySQL and uses MySQL to debug it and the application is working in both Windows and Linux.
Now I have started using NUITT to test my code, especially since I need to check that the code working under Windows also works in Linux. My Announce Test runs well under Windows but is not under Linux.
This is my Windows environment:
NUINIT Version 2.5.1.9189 Copyright (C) 2002-2009 Charlie Pool Copyright (C) 2002-2004 James W. Newkerork, Michael C. Copyright (c) 2000-2002 Philip Craig All rights reserved.
Runtime Environment - OS Version: Microsoft Windows NT 5.1.2600 Service CLR Version: 2.0.50727.3053 (Net 2.0.50727.3053)
This environment with my Linux error (Library is the name of my application):
NUNIT version 2.4.8 Copyright (C) 2002-2007 Charlie Poole Copyright (C) 2002-2004 James W. Newcastle, Michael C. Two, alexi a. Vorotosov Copyright (c) 2000-2002 Philip Craig All rights reserved.
Runtime Environment - OS Version: UNIX 2.6.24.24 CLR Version: 1.1.4322.2032 (Mono 2.4.2.2)
** (/ usr / local / lib / Mono / 1.0 / Nunit-console.exe: 4888): Warning **: Class System.ComnantModel.InputProperty Changed, System, Version = 2.0.0.0, Culture = Neutral, Public KeyToken = B77A5C 561934e089 File or Assembly Name Could library None of the tests, version = 1.0.0.0, culture = neutral, public K-token = faucet, or its dependencies were found.
I do not know what I'm doing. Do you have any tips? It appears that I have to include the system. ComponentModel.INotifyPropertyChanged, I have searched the Internet to see whether it has been implemented in mono but I have not received any information. Thank you
Anyway you have started CLR 1.1 - Note "CLR Version: 1.1.4322.2032 ( Mono 2.4.2.2) "
I'm not sure how you did this, but I'm pretty sure this is the problem ... how are you running the NUIT? I suspect that the problem is that you are using a version of NUnit that is compiled from .NET 1.1, so the mono decides to load its CLR v1.1. Assume that you are explicitly calling mono
binary, try specifying the - runtime
argument, such as:
Mono - Start time = 2.0.50727 (whichever you did earlier)
EDIT: Which runtime version you have found, check this test.cs file:
< Pre> using the system; Class Test {Static Wide Men (Console.Weightline (Environmental Version)}}
Then Compile it and Run:
$ gmcs Test.cs $ mono Test.exe 2.0.50727.1433
Which version do you get below?
Comments
Post a Comment