public async Task ExecutePostProcessingAsyncWithoutCancellationToken_GetCalledBy_ReadAsMultipartAsync() { // Arrange MultipartFormDataContent multipartContent = new MultipartFormDataContent(); Mock <MultipartFormDataStreamProvider> mockProvider = new Mock <MultipartFormDataStreamProvider>(ValidPath); mockProvider.CallBase = true; // Act var provider = await multipartContent.ReadAsMultipartAsync(mockProvider.Object); // Assert mockProvider.Verify(p => p.ExecutePostProcessingAsync(), Times.Once()); }