public void ValidateExceptionResponse() { ManagementTestClient client = InstrumentClient(new ManagementTestClient()); TestResource rgOp = client.GetTestResource(); Assert.ThrowsAsync(typeof(ArgumentException), async() => await rgOp.GetResponseExceptionAsync()); }