Skip to content

Commit

Permalink
Add example of retrieving int values
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Apr 10, 2014
1 parent 2506ea6 commit 0d68727
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ public void Does_work_with_ParseKeyValueText()
Assert.That(appSettings.Get("EmptyKey"), Is.EqualTo(""));
Assert.That(appSettings.Get("RealKey"), Is.EqualTo("This is a real value"));

Assert.That(appSettings.Get("IntKey", defaultValue:1), Is.EqualTo(42));

var list = appSettings.GetList("ListKey");
Assert.That(list, Has.Count.EqualTo(5));
Assert.That(list, Is.EqualTo(new List<string> { "A", "B", "C", "D", "E" }));
Expand Down

0 comments on commit 0d68727

Please sign in to comment.