Some tests can be quite complex, perhaps having prerequisites that consist of various steps, querying initial conditions, loading test data, etc. You can use Attributes to specify various test configurations. The sample below shows how to create your own attribute class and how to retrieve and use it in various parts of your code. I use this technique in conjunction with an XML config file (using System.Configuration.ConfigurationManager ) to specify configurations that are global to all tests, which...(read more)
↧