Exemplo n.º 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.");
 }
Exemplo n.º 6
0
        public void Create_Empty()
        {
            var e = new DotNetWorkQueueException();

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

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

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