public void ReadDate() { var result = DateTime.MaxValue; var sut = new ApplicationResourcesSettingsProvider(); RunOn.Dispatcher(() => { result = sut.EvaluateDateTimeToggleValue(new SimpleToggle()); }); Assert.AreEqual(new DateTime(2000, 1, 1, 23, 22, 21), result); }
public void ReadDate() #endif { var result = DateTime.MaxValue; var sut = new ApplicationResourcesSettingsProvider(); #if NETFX_CORE await #endif RunOn.Dispatcher(() => { ApplicationResourcesSetter.Set("FeatureToggle.SimpleToggle", "01-Feb-2000 23:22:21"); result = sut.EvaluateDateTimeToggleValue(new SimpleToggle()); }); AssertFacade.Equal(new DateTime(2000, 2, 1, 23, 22, 21), result); }