public void ChecksumTestNoFiles() { Checksum task = new Checksum(); task.BuildEngine = new MockBuild(); Assert.IsFalse(task.Execute(), "Execute Failed"); }
public void ChecksumTestUnsupportedAlg() { Checksum task = new Checksum(); task.BuildEngine = new MockBuild(); task.Files = TaskUtility.StringArrayToItemArray( inputFiles ); task.Algorithm = "foo"; Assert.IsFalse( task.Execute(), "Execute Failed" ); }
public void ChecksumTestSHA1() { Checksum task = new Checksum(); task.BuildEngine = new MockBuild(); task.Files = TaskUtility.StringArrayToItemArray( inputFiles ); task.Algorithm = "SHA1"; Assert.IsTrue( task.Execute(), "Execute Failed" ); }
public void ChecksumTestUnsupportedAlg() { Checksum task = new Checksum(); task.BuildEngine = new MockBuild(); task.Files = TaskUtility.StringArrayToItemArray(inputFiles); task.Algorithm = "foo"; Assert.IsFalse(task.Execute(), "Execute Failed"); }
public void ChecksumTestSHA1() { Checksum task = new Checksum(); task.BuildEngine = new MockBuild(); task.Files = TaskUtility.StringArrayToItemArray(inputFiles); task.Algorithm = "SHA1"; Assert.IsTrue(task.Execute(), "Execute Failed"); }
public void ChecksumTestNoFiles() { Checksum task = new Checksum(); task.BuildEngine = new MockBuild(); Assert.IsFalse( task.Execute(), "Execute Failed" ); }