public void CurrencyRepository_AddValue() { var repo = new CurrencyRepository(); var key = "FAK"; var currency = new CurrencyInfo { CurrencyCode = "FAK", CurrencyName = "Fake Dollar" }; repo.AddValue(key, currency); var value = repo.GetValue <CurrencyInfo>(key); var containsKey = repo.ContainsKey(key); Assert.IsNotNull(value); Assert.IsTrue(containsKey); Assert.AreEqual("FAK", value.CurrencyCode); }