public async Task GetFileInfoAsync_ReturnsFileInfoIfFileExists() { // Arrange var fileName = Path.GetRandomFileName(); var expectedFileName = Path.GetFileName(fileName); var expectedFilePath = fileName; await AzureFileStorageTestHelper.CreateTestFileAsync(_fileShare, fileName); // Act var result = await _sut.GetFileInfoAsync(fileName); // Assert Assert.True(result.Exists); Assert.False(result.IsDirectory); Assert.Equal(expectedFileName, result.Name); Assert.Equal(expectedFilePath, result.Path); }