Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a way to conditionally exclude a test?
Message
De
07/03/2013 16:13:52
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Test et débogage
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01567786
Message ID:
01567806
Vues:
41
This message has been marked as a message which has helped to the initial question of the thread.
It's a TSA Test. There is no possible way you can determine that one test has the correct result and the other doesn't. The test that reads the value should write the value, then read it back. Do not rely on the data to be in any state before the test unless you write the value right there.

>That's the idea - the unit test will setup the data the way I need. Say, I have a method in my class that based on the preference table values makes slightly different things. In order for me to test both preference settings, I need to create two tests and in these tests change these settings. I think I may also need to restore them back after I'm done, but that's not my concern at the moment.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform