public void WhenMissingKeyWithDefaultValueIsRequestedFromLookup() { var lookup = new AppConfig(); lookup.Value().For("age", 23); Assert.That(lookup.Value().For<int>("age"), Is.EqualTo(23)); }
public void WhenDecimalIsRequestedFromAppConfig() { var lookup = new AppConfig(); lookup.Get("howlongisapieceofstring", "9876543210.9876543210"); lookup.Get("dob", "1995-10-10"); Assert.That(lookup.Value().For<decimal>("howlongisapieceofstring"), Is.EqualTo(9876543210.9876543210)); }