Beispiel #1
0
        public void DownloadAsStreamAsync_IncorrectId_Throws404()
        {
            //Download a file that doesn't exist
            var exception = Assert.ThrowsAsync <ApiException>(() =>
                                                              _filesApi.DownloadAsStreamAsync(Guid.NewGuid().ToString()));

            Assert.AreEqual(exception.ErrorCode, 404);
        }