コード例 #1
0
        public async Task ExecuteBatch_ReturnsEmptyList_IfError()
        {
            // Arrange
            CloudTable table = InitializeTable();

            ITableEntity   entity    = new DynamicTableEntity(TestPartition, "data");
            TableOperation operation = TableOperation.Insert(entity);

            TableBatchOperation batch = new TableBatchOperation();

            batch.Add(operation);
            batch.Add(operation);

            // Act
            IEnumerable <TableResult> actual = await _manager.ExecuteBatchAsync(table, batch);

            // Assert
            Assert.Empty(actual);
        }