nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #02903
[Bug 1047272] [NEW] TestContext.CurrentContext.Result throws NullReferenceException
Public bug reported:
We are using stable NUnit 2.6 for testing using C# .Net code mainly due to new /runlist command line option.
Before each test in method with TestFixtureSetUp attribute we check if the test shouldn't be skipped. If so Assert.Ignore is called.
Later in method with TestFixtureTearDown attribute we are used to check TestContext.CurrentContext.Result for actual test result and report it. In version 2.5.8 it worked correctly and Status in Result was properly set. Since 2.6.0 it throws NullReferenceException. Is it something planned and we should call Assert.Ignore or check for the Result somewhere else? Thanks
** Affects: nunitv2
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/1047272
Title:
TestContext.CurrentContext.Result throws NullReferenceException
Status in NUnit V2 Test Framework:
New
Bug description:
We are using stable NUnit 2.6 for testing using C# .Net code mainly due to new /runlist command line option.
Before each test in method with TestFixtureSetUp attribute we check if the test shouldn't be skipped. If so Assert.Ignore is called.
Later in method with TestFixtureTearDown attribute we are used to check TestContext.CurrentContext.Result for actual test result and report it. In version 2.5.8 it worked correctly and Status in Result was properly set. Since 2.6.0 it throws NullReferenceException. Is it something planned and we should call Assert.Ignore or check for the Result somewhere else? Thanks
To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/1047272/+subscriptions
Follow ups
-
[Bug 1047272] Re: TestContext.CurrentContext.Result throws NullReferenceException
From: Charlie Poole, 2012-10-23
-
[Bug 1047272] Re: TestContext.CurrentContext.Result throws NullReferenceException
From: Charlie Poole, 2012-10-06
-
[Bug 1047272] Re: TestContext.CurrentContext.Result throws NullReferenceException
From: Pavel Spacil, 2012-10-05
-
[Bug 1047272] Re: TestContext.CurrentContext.Result throws NullReferenceException
From: Charlie Poole, 2012-10-05
-
[Bug 1047272] Re: TestContext.CurrentContext.Result throws NullReferenceException
From: Charlie Poole, 2012-10-05
-
[Bug 1047272] Re: TestContext.CurrentContext.Result throws NullReferenceException
From: Pavel Spacil, 2012-10-05
-
[Bug 1047272] Re: TestContext.CurrentContext.Result throws NullReferenceException
From: Charlie Poole, 2012-10-01
-
[Bug 1047272] Re: TestContext.CurrentContext.Result throws NullReferenceException
From: Pavel Spacil, 2012-10-01
-
[Bug 1047272] Re: TestContext.CurrentContext.Result throws NullReferenceException
From: Charlie Poole, 2012-09-25
-
[Bug 1047272] Re: TestContext.CurrentContext.Result throws NullReferenceException
From: Launchpad Bug Tracker, 2012-09-25
-
[Bug 1047272] Re: TestContext.CurrentContext.Result throws NullReferenceException
From: Charlie Poole, 2012-09-25
-
[Bug 1047272] Re: TestContext.CurrentContext.Result throws NullReferenceException
From: Charlie Poole, 2012-09-24
-
[Bug 1047272] Re: TestContext.CurrentContext.Result throws NullReferenceException
From: Pavel Spacil, 2012-09-13
-
[Bug 1047272] Re: TestContext.CurrentContext.Result throws NullReferenceException
From: Pavel Spacil, 2012-09-08
-
[Bug 1047272] Re: TestContext.CurrentContext.Result throws NullReferenceException
From: Pavel Spacil, 2012-09-08
-
[Bug 1047272] Re: TestContext.CurrentContext.Result throws NullReferenceException
From: Charlie Poole, 2012-09-07
-
[Bug 1047272] Re: TestContext.CurrentContext.Result throws NullReferenceException
From: Pavel Spacil, 2012-09-07
-
Re: [Bug 1047272] [NEW] TestContext.CurrentContext.Result throws NullReferenceException
From: Charlie Poole, 2012-09-07
-
[Bug 1047272] [NEW] TestContext.CurrentContext.Result throws NullReferenceException
From: Pavel Spacil, 2012-09-07
References