public void InPlaceGitBackupNewRepositoryWithOneFileTest()
 {
     using (var testBooStrapper = new TestBootStrapper(GetType()))
     {
         using (var testFolder = TestFolderHelper.CreateTestFolder())
         {
             testFolder.AddOneFile();
             var target   = testBooStrapper.Container.Resolve <IInPlaceGitBackupProvider>();
             var actual   = target.InPlaceGitBackup(testFolder.Path);
             var expected = new GitBackupStatus(true, 1, 0, 0);
             Assert.AreEqual(expected.CreateRepository, actual.CreateRepository, "CreatedRepository");
             Assert.AreEqual(expected.NumberOfFilesAdded, actual.NumberOfFilesAdded, "NumberOfFilesAdded");
             Assert.AreEqual(expected.NumberOfFilesChanged, actual.NumberOfFilesChanged, "NumberOfFilesChanged");
             Assert.AreEqual(expected.NumberOfFilesRemoved, actual.NumberOfFilesRemoved, "NumberOfFilesRemoved");
         }
     }
 }
        public void InPlaceGitBackupExistingRepositoryWithTwoFilesModifyingOneFileTest()
        {
            using (var testBooStrapper = new TestBootStrapper(GetType()))
            {
                using (var testFolder = TestFolderHelper.CreateTestFolder())
                {
                    var testFile1 = testFolder.AddOneFile();
                    var testFile2 = testFolder.AddOneFile();
                    var target    = testBooStrapper.Container.Resolve <IInPlaceGitBackupProvider>();
                    var status    = target.InPlaceGitBackup(testFolder.Path);

                    testFolder.ModifyFile(testFile1);

                    var actual   = target.InPlaceGitBackup(testFolder.Path);
                    var expected = new GitBackupStatus(false, 0, 1, 0);
                    Assert.AreEqual(expected.CreateRepository, actual.CreateRepository, "CreatedRepository");
                    Assert.AreEqual(expected.NumberOfFilesAdded, actual.NumberOfFilesAdded, "NumberOfFilesAdded");
                    Assert.AreEqual(expected.NumberOfFilesChanged, actual.NumberOfFilesChanged, "NumberOfFilesChanged");
                    Assert.AreEqual(expected.NumberOfFilesRemoved, actual.NumberOfFilesRemoved, "NumberOfFilesRemoved");
                }
            }
        }