public void Should_only_be_allowed_to_call_begin_once() { var stubAction = new StubAction(); try { stubAction.Begin(); stubAction.Begin(); } catch (InvalidOperationException e) { e.Message.ShouldEqual("Begin should only be called once."); } }
public void Should_only_be_allowed_to_call_begin_once() { var stubAction = new StubAction(); try { stubAction.Begin(); stubAction.Begin(); } catch (InvalidOperationException e) { e.Message.ShouldEqual("Begin should only be called once."); } }
public void Should_mark_state_to_in_progress() { stubAction.Begin(); stubAction.State.ShouldEqual(ActionState.InProgress); }