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 SuccessfulBackgroundActionTests() { stubAction = new StubAction(); }