コード例 #1
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.");
     }
 }
コード例 #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();
 }
コード例 #4
0
 public SuccessfulBackgroundActionTests()
 {
     stubAction = new StubAction();
 }