public void ReadDaysOfWeek() { List<DayOfWeek> result = null; var sut = new ApplicationResourcesSettingsProvider(); RunOn.Dispatcher(() => { result = sut.GetDaysOfWeek(new DaysToggle()).ToList(); }); Assert.AreEqual(DayOfWeek.Wednesday, result[0]); Assert.AreEqual(DayOfWeek.Saturday, result[1]); Assert.AreEqual(2, result.Count); }
public void ReadDaysOfWeek() #endif { List<DayOfWeek> result = null; var sut = new ApplicationResourcesSettingsProvider(); #if NETFX_CORE await #endif RunOn.Dispatcher(() => { ApplicationResourcesSetter.Set("FeatureToggle.DaysToggle", "Wednesday, Saturday"); result = sut.GetDaysOfWeek(new DaysToggle()).ToList(); }); AssertFacade.Equal(DayOfWeek.Wednesday, result[0]); AssertFacade.Equal(DayOfWeek.Saturday, result[1]); AssertFacade.Equal(2, result.Count); }