Inheritance: DotNetWorkQueueException
コード例 #1
0
 public void Create_Inner()
 {
     var e = new InterceptorException("error", new Exception());
     Assert.Equal(e.Message, "error");
     Assert.NotNull(e.InnerException);
 }
コード例 #2
0
 public void Create()
 {
     var e = new InterceptorException("error");
     Assert.Equal(e.Message, "error");
 }
コード例 #3
0
 public void Create_Format()
 {
     var e = new InterceptorException("error {0}", 1);
     Assert.Equal(e.Message, "error 1");
 }
コード例 #4
0
 public void Create_Empty()
 {
     var e = new InterceptorException();
     Assert.Equal(e.Message, "Exception of type 'DotNetWorkQueue.Exceptions.InterceptorException' was thrown.");
 }