Execute() публичный Метод

public Execute ( ) : bool
Результат bool
Пример #1
0
 public void TestFilesToFolder()
 {
     EncryptFiles task = new EncryptFiles ();
     task.BuildEngine = new ShallowBuildEngine ();
     task.SourceFiles = new ITaskItem[]{ new TaskItem ("CallReceigenTests_Info.plist") };
     task.DestinationFolder = new TaskItem ("./encrypted");
     task.EncryptionSeed = "monobjc";
     bool result = task.Execute ();
     Assert.IsTrue (result);
 }
Пример #2
0
 public void TestDifferentSourceAndDestination()
 {
     EncryptFiles task = new EncryptFiles ();
     task.BuildEngine = new ShallowBuildEngine ();
     task.SourceFiles = new ITaskItem[] { null, null };
     task.DestinationFiles = new ITaskItem[] { null };
     task.EncryptionSeed = "monobjc";
     bool result = task.Execute ();
     Assert.IsFalse (result);
 }
Пример #3
0
 public void TestDestinationFilesAndFolder()
 {
     EncryptFiles task = new EncryptFiles ();
     task.BuildEngine = new ShallowBuildEngine ();
     task.SourceFiles = new ITaskItem[] { null };
     task.DestinationFiles = new ITaskItem[] { null };
     task.DestinationFolder = new TaskItem ("./encrypted");
     task.EncryptionSeed = "monobjc";
     bool result = task.Execute ();
     Assert.IsFalse (result);
 }
Пример #4
0
 public void TestNoSourceFiles()
 {
     EncryptFiles task = new EncryptFiles ();
     task.BuildEngine = new ShallowBuildEngine ();
     task.SourceFiles = new ITaskItem[0];
     task.EncryptionSeed = "monobjc";
     bool result = task.Execute ();
     Assert.IsTrue (result);
 }