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