public void GetConfigured_Type() { var dateTime = new DateTime(2001, 1, 1); var oldDateTime = Passthrough.GetConfigured <DateTime>(dateTime); var oldDateTimeString = oldDateTime.ToString(); Assert.AreEqual(DateTime.MinValue.ToString(), oldDateTimeString); }
public void GetConfigured() { ICache cache = Passthrough.GetConfigured <ICache>(); Assert.AreEqual("AppFabricCache", cache.Name); cache.Name = "NewName"; Assert.AreEqual("NewName", cache.Name); var value = DateTime.Now; cache.Set("x", value); object value2 = cache.Get("x"); Assert.AreEqual(value, value2); }