﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DirectoryUtilityUnitTest.cs" company="Sean McElroy">
//   Copyright Sean McElroy; released as open-source software under the licensing terms of the MIT License.
// </copyright>
// <summary>
//   Summary description for DirectoryUtilityUnitTest
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Mystiko.Library.Tests.IO
{
    using System.IO;
    using System.Threading.Tasks;

    using Mystiko.IO;

    using Xunit;

    /// <summary>
    /// Summary description for directory utility unit tests
    /// </summary>
    public class DirectoryUtilityUnitTest
    {
        [Fact]
        public async Task PreHashDirectory()
        {
            // Encrypt
            var localDirectory = @"C:\Users\Smcelroy\Documents\SpiderOak Hive\Pictures\Texas";
            if (!Directory.Exists(localDirectory))
            {
                Assert.True(false, $"Unable to find folder {localDirectory}");
            }

            var localManifest = await DirectoryUtility.PreHashDirectory(localDirectory, verbose: true);
            Assert.NotNull(localManifest);
        }
    }
}
