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);
 }