Beispiel #1
0
        public void Create_Inner()
        {
            var e = new DotNetWorkQueueException("error", new Exception());

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

            Assert.Equal("Exception of type 'DotNetWorkQueue.Exceptions.DotNetWorkQueueException' was thrown.", e.Message);
        }
Beispiel #7
0
        public void Create_Format()
        {
            var e = new DotNetWorkQueueException("error {0}", 1);

            Assert.Equal("error 1", e.Message);
        }
Beispiel #8
0
        public void Create()
        {
            var e = new DotNetWorkQueueException("error");

            Assert.Equal("error", e.Message);
        }