Public bug reported:

Obviously, the current implementation is the following:
- First, the Properties which are used for TestCaseSource are asked (static or 
not)
- Then the methods attributed with TestFixtureSetUp are called.
- Then test startup is done
and the test called.

It is possible to change the first two steps? The current behaviour is a
problem for us. Because the property for the TestCaseSource should have
some data from the database which the Connection is established in
FixtureSetUp. The parameter vor the database, username, password and so
on are set in the constructor of the class.

Now, I have hacked they in manually. This is not quite a nice way. ;-)

** Affects: nunit-3.0
     Importance: Undecided
         Status: New

** Description changed:

- Obviuosly, the current implementation is the following:
+ Obviously, the current implementation is the following:
  - First, the Properties which are used for TestCaseSource are asked (static 
or not)
  - Then the methods attributed with TestFixtureSetUp are called.
  - Then test startup is done
  and the test called.
  
  It is possible to change the first two steps? The current behaviour is a
  problem for us. Because the property for the TestCaseSource should have
  some data from the database which the Connection is established in
  FixtureSetUp. The parameter vor the database, username, password and so
  on are set in the constructor of the class.
  
  Now, I have hacked they in manually. This is not quite a nice way. ;-)

-- 
TestCaseSource and TestFixtureSetUp
https://bugs.launchpad.net/bugs/664018
You received this bug notification because you are a member of NUnit
Core Developers, which is the registrant for NUnit Framework.

Status in NUnit Test Framework: New

Bug description:
Obviously, the current implementation is the following:
- First, the Properties which are used for TestCaseSource are asked (static or 
not)
- Then the methods attributed with TestFixtureSetUp are called.
- Then test startup is done
and the test called.

It is possible to change the first two steps? The current behaviour is a 
problem for us. Because the property for the TestCaseSource should have some 
data from the database which the Connection is established in FixtureSetUp. The 
parameter vor the database, username, password and so on are set in the 
constructor of the class.

Now, I have hacked they in manually. This is not quite a nice way. ;-)





_______________________________________________
Mailing list: https://launchpad.net/~nunit-core
Post to     : nunit-core@lists.launchpad.net
Unsubscribe : https://launchpad.net/~nunit-core
More help   : https://help.launchpad.net/ListHelp

Reply via email to