nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #01874
[Bug 726313] Re: Failure in Assembly level Action attribute causes crash
** Changed in: nunitv2
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/726313
Title:
Failure in Assembly level Action attribute causes crash
Status in NUnit V2 Test Framework:
Fix Released
Bug description:
If an assembly-level action attribute causes an error or failure in
it's start phase, a null reference occurs in TestSuite.MarkTestFailed
when attempting to acess this.FixtureType.Name.
Before the introduction of action attributes it was not possible to
have a failure in setup unless there was a fixture, so no test for
FixtureType being null was made. We need to test for a non-null
fixtureType before trying to access it. This will also apply to
marking child tests as invalid or ignored - essentially, all
references to FixtureType on the test suite must be guarded now.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/726313/+subscriptions
References