public async void GetAssetAsyncThrowsCustomException() { var exception = await Assert.ThrowsAsync <RestClientErrorException>( () => _alpacaTradingClient.GetAssetAsync("HEI-A")); Assert.NotNull(exception); Assert.NotNull(exception.Message); Assert.NotEqual(0, exception.ErrorCode); }