code: def test_list_files(self, mock_service):
      mock_instance = mock_service.return_value
      mock_instance.list_directories_and_files.return_value = [
          FileProperties(name="file1"),
          FileProperties(name="file2"),
          DirectoryProperties(name="dir1"),
          DirectoryProperties(name="dir2"),
      ]
      hook = AzureFileShareHook(
          azure_fileshare_conn_id="azure_fileshare_extras",
          share_name="share",
          directory_path="directory",
      )
      files = hook.list_files()
      assert files == ["file1", "file2"]
      mock_instance.list_directories_and_files.assert_called_once_with()
  
imports: from __future__ import annotations
  from io import StringIO
  from unittest import mock
  import pytest
  from azure.storage.fileshare import DirectoryProperties, FileProperties, ShareDirectoryClient, ShareFileClient, ShareServiceClient
  from airflow.models import Connection
  from airflow.providers.microsoft.azure.hooks.fileshare import AzureFileShareHook
label_desc: Use image node_id 10 for calling the TestAzureFileshareHook obj's underlying member method code with example usage: obj.test_list_files(mock_service) without return types