Example #1
0
 public void LargeCase()
 {
     BackUp.BackUp a = new BackUp.BackUp();
     a.AddFile(Largepath1);
     a.AddFile(Largepath2);
     a.CreateCompletePoint();
     a.CreateCompletePoint();
     Console.WriteLine(a.Count(a));
     Console.WriteLine(a.WriteBackUpSize());
     a.CleanerConfigurator(new CleanerConfiguration(3, 200000, DateTime.Now.AddSeconds(3), GibridType.AndGibrid, CleanerType.SizeCleaner));
     Console.WriteLine(a.Count(a));
     Console.WriteLine(a.WriteBackUpSize());
 }
Example #2
0
 public void IncCase()
 {
     BackUp.BackUp a = new BackUp.BackUp();
     a.AddFile(Changepath1);
     a.AddFile(Changepath2);
     a.CreateCompletePoint();
     using (StreamWriter sw = new StreamWriter(Changepath1, true, System.Text.Encoding.Default))
     {
         sw.WriteLine("snidd");
     }
     a.CreateIncPoint();
     using (StreamWriter sw = new StreamWriter(Changepath1, true, System.Text.Encoding.Default))
     {
         sw.WriteLine("snidd");
     }
     a.CreateIncPoint();
     //a.CreateCompletePoint();
     a.CleanerConfigurator(new CleanerConfiguration(2, 30, DateTime.Now, GibridType.OrGibrid, CleanerType.CountCleaner));
     Console.WriteLine(a.Count(a));
     Console.WriteLine(a.WriteBackUpSize());
 }