Example #1
0
        public void SendAsync_Throws_WhenRequestIsNull()
        {
            MockHttpBatchHandler mockHandler = new MockHttpBatchHandler(new HttpServer());

            Assert.ThrowsArgumentNull(() =>
                                      mockHandler.SendAsync(null).Wait(),
                                      "request");
        }
        public Task SendAsync_Throws_WhenRequestIsNull()
        {
            // Arrange
            MockHttpBatchHandler mockHandler = new MockHttpBatchHandler(new HttpServer());

            // Act & Assert
            return(Assert.ThrowsArgumentNullAsync(() => mockHandler.SendAsync(null), "request"));
        }
        public void SendAsync_Throws_WhenRequestIsNull()
        {
            MockHttpBatchHandler mockHandler = new MockHttpBatchHandler(new HttpServer());

            Assert.ThrowsArgumentNull(() =>
                mockHandler.SendAsync(null).Wait(),
                "request");
        }