UnitRun 1.0 Exception
If I try to run tests in UnitRun 1.0 I get following exception (there is no
exception in ReSharper 2.5 - 326):
JetBrains.ReSharper.Util.InternalErrorException: Der Objektverweis wurde
nicht auf eine Objektinstanz festgelegt.
An exception has occurred ---> System.NullReferenceException: Der
Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei
JetBrains.ReSharper.Metadata.Reader.Impl.MetadataEntity.GetCustomAttributes(String
attributeClassFullyQualifiedName)
bei
JetBrains.ReSharper.UnitTestSupport.NUnit.NUnitCodeExplorer.GetIgnoreAttribute(IMetadataEntity
entity)
bei
JetBrains.ReSharper.UnitTestSupport.NUnit.NUnitCodeExplorer.Explore(IMetadataAssembly
assembly)
bei
JetBrains.ReSharper.UnitTestSupport.UI.UnitTestControl.AddAssemblies(FileSystemPath[]
assemblies)
bei
JetBrains.ReSharper.UnitTestSupport.UI.UnitTestControl.JetBrains.ReSharper.UnitTestSupport.UI.IUnitTestController.ReloadAssembly(FileSystemPath
path)
bei
JetBrains.ReSharper.UnitTestSupport.Integration.UnitTestRunner.c__DisplayClass2.b__1()
bei JetBrains.ReSharper.Shell.Invocator.<>c__DisplayClass1.b__0()
--- Ende der internen Ausnahmestapelüberwachung ---
at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception,
String, Boolean)
at JetBrains.ReSharper.Util.Logger.LogException(Exception)
at
JetBrains.ReSharper.Shell.<>c__DisplayClass1.]]>b__0()
at System.RuntimeMethodHandle._InvokeMethodFast(Object,
Object[], SignatureStruct&, MethodAttributes, RuntimeTypeHandle)
at System.RuntimeMethodHandle.InvokeMethodFast(Object,
Object[], Signature, MethodAttributes, RuntimeTypeHandle)
at System.Reflection.RuntimeMethodInfo.Invoke(Object,
BindingFlags, Binder, Object[], CultureInfo, Boolean)
at System.Delegate.DynamicInvokeImpl(Object[])
at
System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry)
at
System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object)
at System.Threading.ExecutionContext.runTryCode(Object)
at
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode,
CleanupCode, Object)
at
System.Threading.ExecutionContext.RunInternal(ExecutionContext,
ContextCallback, Object)
at System.Threading.ExecutionContext.Run(ExecutionContext,
ContextCallback, Object)
at
System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message&)
at System.Windows.Forms.ScrollableControl.WndProc(Message&)
at System.Windows.Forms.ContainerControl.WndProc(Message&)
at System.Windows.Forms.Form.WndProc(Message&)
at
System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
at
System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
at
System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr,
IntPtr)
Test that fails:
public void TestGetNumberOverMax()
{
If I change typeof(ArgumentOutOfRangeException) to
"System.ArgumentOutOfRangeException" it's working.
Please sign in to leave a comment.
Thank you for the feedback.
This is is known problem, and will be fixed in UnitRun 2.0
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Daniel Danilin" <daniel.danilins@corporate-planning.com> wrote in message
news:emasop$ave$1@is.intellij.net...
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
Thank you for a fast answer.
We have temporarily fixed the problem by removing 2 constructors in
ExpectedException that contains strings in signatures.
"Eugene Pasynkov (JetBrains)" <Eugene.Pasynkov@jetbrains.com> schrieb im
Newsbeitrag news:emb00f$ka2$1@is.intellij.net...
>
>> If I try to run tests in UnitRun 1.0 I get following exception (there is
>> no exception in ReSharper 2.5 - 326):
>>
>> JetBrains.ReSharper.Util.InternalErrorException: Der Objektverweis wurde
>> nicht auf eine Objektinstanz festgelegt.
>>
>> An exception has occurred ---> System.NullReferenceException: Der
>> Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
>>
>> bei
>> JetBrains.ReSharper.Metadata.Reader.Impl.MetadataEntity.GetCustomAttributes(String
>> attributeClassFullyQualifiedName)
>>
>> bei
>> JetBrains.ReSharper.UnitTestSupport.NUnit.NUnitCodeExplorer.GetIgnoreAttribute(IMetadataEntity
>> entity)
>>
>> bei
>> JetBrains.ReSharper.UnitTestSupport.NUnit.NUnitCodeExplorer.Explore(IMetadataAssembly
>> assembly)
>>
>> bei
>> JetBrains.ReSharper.UnitTestSupport.UI.UnitTestControl.AddAssemblies(FileSystemPath[]
>> assemblies)
>>
>> bei
>> JetBrains.ReSharper.UnitTestSupport.UI.UnitTestControl.JetBrains.ReSharper.UnitTestSupport.UI.IUnitTestController.ReloadAssembly(FileSystemPath
>> path)
>>
>> bei
>> JetBrains.ReSharper.UnitTestSupport.Integration.UnitTestRunner.c__DisplayClass2.b__1() >> >> bei >> JetBrains.ReSharper.Shell.Invocator.<>c__DisplayClass1.b__0() >> >> --- Ende der internen Ausnahmestapelüberwachung --- >> >> >> >> at >> JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String, >> Boolean) >> >> at JetBrains.ReSharper.Util.Logger.LogException(Exception) >> >> at >> JetBrains.ReSharper.Shell.<>c__DisplayClass1.b__0() >> >> at System.RuntimeMethodHandle._InvokeMethodFast(Object, >> Object[], SignatureStruct&, MethodAttributes, RuntimeTypeHandle) >> >> at System.RuntimeMethodHandle.InvokeMethodFast(Object, >> Object[], Signature, MethodAttributes, RuntimeTypeHandle) >> >> at System.Reflection.RuntimeMethodInfo.Invoke(Object, >> BindingFlags, Binder, Object[], CultureInfo, Boolean) >> >> at System.Delegate.DynamicInvokeImpl(Object[]) >> >> at >> System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry) >> >> at >> System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object) >> >> at System.Threading.ExecutionContext.runTryCode(Object) >> >> at >> System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, >> CleanupCode, Object) >> >> at >> System.Threading.ExecutionContext.RunInternal(ExecutionContext, >> ContextCallback, Object) >> >> at System.Threading.ExecutionContext.Run(ExecutionContext, >> ContextCallback, Object) >> >> at >> System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry) >> >> at System.Windows.Forms.Control.InvokeMarshaledCallbacks() >> >> at System.Windows.Forms.Control.WndProc(Message&) >> >> at >> System.Windows.Forms.ScrollableControl.WndProc(Message&) >> >> at System.Windows.Forms.ContainerControl.WndProc(Message&) >> >> at System.Windows.Forms.Form.WndProc(Message&) >> >> at >> System.Windows.Forms.ControlNativeWindow.OnMessage(Message&) >> >> at >> System.Windows.Forms.ControlNativeWindow.WndProc(Message&) >> >> at >> System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, >> IntPtr, IntPtr) >> >> >> >> >> >> Test that fails: >> >>]]>
>>
>> public void TestGetNumberOverMax()
>> {
>>
>> If I change typeof(ArgumentOutOfRangeException) to
>> "System.ArgumentOutOfRangeException" it's working.
>>
>>
>