| fit.UnitTests.ConfigurationTest |
An empty configuration settings returns null.
| settings |
| check | get value | testkey | |
| file setup |
| make file | mytest.xml | | <suiteConfig><fit.Settings><testkey>testvalue</testkey></fit.Settings></suiteConfig> |
An XML configuration file is loaded.
The key value is returned.
| settings |
| check | get value | testkey | testvalue |
Missing keys return null.
| settings |
| check | get value | somekey | |
A copy is saved.
A key-value pair is added.
| settings |
| set value | somekey | | somevalue |
| check | get value | somekey | somevalue |
The copy is restored and is unchanged.
| restore copy |
| settings |
| check | get value | somekey | |
A list is loaded.
| file setup |
| make file | mytest.xml | | <suiteConfig><TestList> <add>item1</add> <add>item2</add> <add before="item2">item15</add></TestList></suiteConfig> |
| test list |
| to string |
| item1 |
| item15 |
| item2 |