public void Execute_CultureIndependant_ConsumableDate(string culture) { var state = new GenerationState(); state.Consumables.Clear(); var action = new AutoConsumableAction(true, new DateTime(2014, 09, 26, 9, 16, 55)); action.Execute(state); Assert.That(DateTime.Parse(state.Consumables["today"].ToString()).Date, Is.EqualTo(new DateTime(2014, 09, 26))); }
public void Execute_CultureIndependant_ConsumableNow(string culture) { var state = new GenerationState(); state.Consumables.Clear(); var action = new AutoConsumableAction(true, new DateTime(2014, 09, 26, 9, 16, 55)); action.Execute(state); Assert.That(state.Consumables["now"], Is.EqualTo("2014-09-26T09:16:55")); }