NUNIT 2.2
От: Андрей  
Дата: 29.06.05 07:02
Оценка:
Есть nunit 2.2.
при попытке загрузить любой файл (например такой):
namespace TestUnit
{
    using System;
    using System.IO;
    using NUnit.Framework;
    /// <summary>
    /// Summary description for TempTest.
    /// </summary>
    [TestFixture]
    public class TempTest
    {
        private int i;

        public TempTest()
        {
            i = 5;
        }

        [Test]
        public void Try()
        {
            i = i * 5;
            Console.Write(i.ToString());
        }
    }
}


выкидывает ошибку:

Sysyte.TypeInitializationException: The type initializer for "NUnit.Core.Reflect" threw an exception--->System.TypeLoadException

Server stack trace:
at NUnit.Core.Reflect.HasTestFixtureAttribute(Type type)
at NUnit.Core.TestFixture.IsValidType(Type type)
at NUnit.Core.TestSuiteBuilder.Build(String assemblyName, Int32 assemblyKey)
at NUnit.Core.RemoteTestRunner.Load(String assemblyName)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at NUnit.Core.TestRunner.Load(String assemblyName)
at NUnit.Util.TestDomain.Load(String assemblyFileName, String testFixture)
at NUnit.Util.TestDomain.Load(NUnitProject project, String testFixture)
at NUnit.Util.TestLoader.LoadTest(String testName)


Кто-еибудь сталкивался с этим? Подскажите что можно сделать.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.