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