← Back to team overview

nunit-core team mailing list archive

Re: [Bug 802093] [NEW] TestAdapter.get_FullName throws NullReferenceException

 

I assume you mean NUnit 2.5.9.

Where are you making the call to TestContext.Test.FullName - i.e. in
a test, in setup, etc?

There was a bug supposedly fixed in 2.5.8 where TestContext was null
when there was a non-zero TimeOut. Could that be the case here?

Charlie

On Sat, Jun 25, 2011 at 9:37 PM, Andrew Arnott
<802093@xxxxxxxxxxxxxxxxxx> wrote:
> Public bug reported:
>
> I am seeing random test failures in NUnit 2.4.9 because of this NUnit
> bug:
>
> Test(s) failed. System.NullReferenceException : Object reference not set to an instance of an object.
>   at NUnit.Framework.TestContext.TestAdapter.get_FullName()
>   at DotNetOpenAuth.Test.TestBase.MeasurePerformance(Action action, Single maximumAllowedUnitTime, Int32 samples, Int32 iterations, String name) in c:\BuildAgent\work\35657a53ee36436f\src\DotNetOpenAuth.Test\TestBase.cs:line 78
>
> ** Affects: nunitv2
>     Importance: Undecided
>         Status: New
>
> --
> You received this bug notification because you are the registrant for
> NUnit V2.
> https://bugs.launchpad.net/bugs/802093
>
> Title:
>  TestAdapter.get_FullName throws NullReferenceException
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nunitv2/+bug/802093/+subscriptions
>

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/802093

Title:
  TestAdapter.get_FullName throws NullReferenceException

Status in NUnit V2 Test Framework:
  New

Bug description:
  I am seeing random test failures in NUnit 2.4.9 because of this NUnit
  bug:

  Test(s) failed. System.NullReferenceException : Object reference not set to an instance of an object.
     at NUnit.Framework.TestContext.TestAdapter.get_FullName()
     at DotNetOpenAuth.Test.TestBase.MeasurePerformance(Action action, Single maximumAllowedUnitTime, Int32 samples, Int32 iterations, String name) in c:\BuildAgent\work\35657a53ee36436f\src\DotNetOpenAuth.Test\TestBase.cs:line 78

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/802093/+subscriptions


References