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.");
     }
 }
예제 #2
0
        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.");
            }
        }
예제 #3
0
 public SuccessfulBackgroundActionTests()
 {
     stubAction = new StubAction();
 }
 public SuccessfulBackgroundActionTests()
 {
     stubAction = new StubAction();
 }