public void TestMoved()
        {
            var oldStub = new StubIFile()
            {
                FileLocationGet = () => "D:\\File.avi",
                ExtensionGet    = () => ".avi",
                FileNameGet     = () => "File"
            };
            var scanStub = new StubIFile()
            {
                FileLocationGet = () => "D:\\folder\\File.avi",
                ExtensionGet    = () => ".avi",
                FileNameGet     = () => "File"
            };
            var old = new List <IFile>()
            {
                oldStub
            };
            var scan = new List <IFile>()
            {
                scanStub
            };


            var comparer = new FilesComparer(old);
            IEnumerable <ScanCompareResult> result = comparer.Compare(scan);

            var comparedResult = result.Single();

            Assert.AreEqual(scanStub.FileLocationGet(), comparedResult.NewScan.FileLocation);
            Assert.AreEqual(oldStub.FileLocationGet(), comparedResult.OldScan.FileLocation);
            Assert.AreEqual(CompareResult.Moved, comparedResult.Result);
        }
        public void TestDelete()
        {
            var oldStub = new StubIFile()
            {
                FileLocationGet = () => "D:\\File.avi",
                ExtensionGet    = () => ".avi",
                FileNameGet     = () => "File"
            };
            var scanStub = new StubIFile()
            {
                FileLocationGet = () => "D:\\File2.avi",
                ExtensionGet    = () => ".avi",
                FileNameGet     = () => "File2"
            };
            var old = new List <IFile>()
            {
                oldStub,
                scanStub
            };
            var scan = new List <IFile>()
            {
                oldStub
            };


            var comparer = new FilesComparer(old);
            IEnumerable <ScanCompareResult> result = comparer.Compare(scan);

            var comparedResult = result.Single();

            Assert.AreEqual(scanStub.FileLocationGet(), comparedResult.OldScan.FileLocation, "FilesComparer.Compare() resulting location should be the same");
            Assert.AreEqual(CompareResult.Removed, comparedResult.Result);
        }