public void Create_Inner() { var e = new InterceptorException("error", new Exception()); Assert.Equal(e.Message, "error"); Assert.NotNull(e.InnerException); }
public void Create() { var e = new InterceptorException("error"); Assert.Equal(e.Message, "error"); }
public void Create_Format() { var e = new InterceptorException("error {0}", 1); Assert.Equal(e.Message, "error 1"); }
public void Create_Empty() { var e = new InterceptorException(); Assert.Equal(e.Message, "Exception of type 'DotNetWorkQueue.Exceptions.InterceptorException' was thrown."); }