public async void RunCommandThrows() { var ex = await ExceptionAssert.RecordThrowsAsync(async() => { await proxy.RunCommandAsync(new RemoteCommand(true, "blah")); }); Assert.IsType <InvalidOperationException>(ex); }
public async void BindMountsThrows() { var ex = await ExceptionAssert.RecordThrowsAsync(async() => await proxy.BindMountsAsync(new BindMount[0])); Assert.IsType <InvalidOperationException>(ex); }