FitNesse.NET
Configuration Test


fit.UnitTests.ConfigurationTest

An empty configuration settings returns null.
settings
checkget valuetestkey

file setup
make filemytest.xml<suiteConfig><fit.Settings><testkey>testvalue</testkey></fit.Settings></suiteConfig>

An XML configuration file is loaded.
load filemytest.xml

The key value is returned.
settings
checkget valuetestkeytestvalue

Missing keys return null.
settings
checkget valuesomekey

A copy is saved.
save copy

A key-value pair is added.
settings
set valuesomekeysomevalue
checkget valuesomekeysomevalue

The copy is restored and is unchanged.
restore copy
settings
checkget valuesomekey

A list is loaded.
file setup
make filemytest.xml<suiteConfig><TestList> <add>item1</add> <add>item2</add> <add before="item2">item15</add></TestList></suiteConfig>

load filemytest.xml

test list
to string
item1
item15
item2

© Copyright 2007,2008 Syterra Software Inc. All rights reserved.