using System.IO;
using CounterDrone.Core;
using Xunit;

namespace CounterDrone.Core.Tests
{
    public class TestPathProviderTests
    {
        [Fact]
        public void AllPaths_ReturnValidDirectories()
        {
            var root = Path.Combine(Path.GetTempPath(), "tp_test");
            var provider = new TestPathProvider(root);

            Assert.EndsWith("tp_test", provider.GetDataRoot());
            Assert.Contains("main.db", provider.GetMainDbPath());
            Assert.Contains("frames", provider.GetFramesDir());
            Assert.Contains("models", provider.GetModelsDir());

            Assert.True(Directory.Exists(provider.GetFramesDir()));
            Assert.True(Directory.Exists(provider.GetModelsDir()));

            Directory.Delete(root, true);
        }
    }
}
