public void CreateClient_Throws_If_Disposed() { // Arrange var target = new LambdaTestServer(); target.Dispose(); // Act Assert.Throws <ObjectDisposedException>(() => target.CreateClient()); }
public async Task EnqueueAsync_Throws_If_Disposed() { // Arrange var target = new LambdaTestServer(); target.Dispose(); var request = new LambdaTestRequest(Array.Empty <byte>()); // Act await Assert.ThrowsAsync <ObjectDisposedException>(() => target.EnqueueAsync(request)); }