예제 #1
0
        public async Task GetItemMetadataByName_NonExisting_ThrowsException()
        {
            // Arrange
            var filename = TestHelpers.GetFilename();
            // Act
            await AsyncAssert.ThrowsException <Exception>(
                async() =>
            {
                var item2 = await App.OneDriveService.GetItemMetadataAsync("", filename);
            }
                );

            // Assert
        }
예제 #2
0
        public async Task GetItemMetadataById_NonExisting_ThrowsException()
        {
            // Arrange
            var id = "NotAnIdThatExist";
            // Act
            await AsyncAssert.ThrowsException <Exception>(
                async() =>
            {
                var item2 = await App.OneDriveService.GetItemMetadataAsync("", id);
            }
                );

            // Assert
        }
        public async Task GetTable_NonExisting_ThrowsException()
        {
            // Arrange
            var item = await TestHelpers.UploadFile();

            // Act
            await AsyncAssert.ThrowsException <Exception>(
                async() =>
            {
                var table = await App.ExcelService.GetTableAsync(item.Id, "TableX");
            }
                );

            // Assert
        }