public void should_get_the_state_associated_with_the_name() { var dao = new StateDao(); dao.SetState("my-state-name", "my-state"); Assert.That(dao.StateByName("my-state-name"), Is.EqualTo("my-state")); }
public void should_convert_state_to_int() { var dao = new StateDao(); dao.SetState("my-state-name", "50"); int state; var ok = dao.StateByName("my-state-name", out state); Assert.That(ok, Is.True); Assert.That(state, Is.EqualTo(50)); }
public void should_convert_state_to_datetime() { var dao = new StateDao(); dao.SetState("my-state-name", "2013-10-01"); DateTime state; var ok = dao.StateByName("my-state-name", out state); Assert.That(ok, Is.True); Assert.That(state, Is.EqualTo(new DateTime(2013, 10, 1))); }