public void Create() { var cache = A.Fake<ICache>(); var settings = A.Fake<IDictionary<string, string>>(); var obj = new ConstStringProvider(cache, settings); Assert.IsNotNull(obj); }
public void Get() { var cache = A.Fake<ICache>(); var settings = new Dictionary<string, string> { { Keys.Value, "key" } }; var obj = new ConstStringProvider(cache, settings); var result = obj.GetAll(); var i = 10; foreach (var t in result) { if (i-- == 0) break; Assert.True((string)t[0] == "key"); } }