﻿using NUnit.Framework;

namespace FileWatcher.Tests
{
    [TestFixture]
    public class FSChangeTriggerWithStateTests
    {
        [Test]
        public void SingleOperationsTests()
        {
//            var triggerMock = new Mock<IFileSystemChangeTrigger>();
//            FsChangeSyncServices trigger = new FsChangeSyncServices();
//            string fileNameAdded = "fileAdded";
//            trigger.Created(fileNameAdded);
//            Assert.AreEqual(1, trigger.State.Count);
//            Assert.AreEqual(FileStatus.Added, trigger.State[fileNameAdded].StateInfo.Status);
//
//            string fileNameChanged = "fileChanged";
//            trigger.Changed(fileNameChanged);
//            Assert.AreEqual(2, trigger.State.Count);
//            Assert.AreEqual(FileStatus.Changed, trigger.State[fileNameChanged].StateInfo.Status);
//
//            string fileNameRemoved = "fileRemoved";
//            trigger.Deleted(fileNameRemoved);
//            Assert.AreEqual(3, trigger.State.Count);
//            Assert.AreEqual(FileStatus.Removed, trigger.State[fileNameRemoved].StateInfo.Status);
//
//            string fileNameRenamed = "fileRenamed";
//            string fileNameRenamedTo = "fileRenamedTo";
//            trigger.Renamed(fileNameRenamedTo, fileNameRenamed);
//            Assert.AreEqual(5, trigger.State.Count);
//            Assert.AreEqual(FileStatus.Removed, trigger.State[fileNameRenamed].StateInfo.Status);
//            Assert.AreEqual(FileStatus.Added, trigger.State[fileNameRenamedTo].StateInfo.Status);
//
        }
    }
}