コード例 #1
0
 public void TestTimetoDoDropBoxCopyTflToVesuviusJob()
 {
     var sut = new DropBoxCopyTflToVesuviusJob(new FakeTimeKeeper(isPreSeason: false, isPeakTime: true))
     {
         SourceDir = "g:\\FileSync\\SyncProjects\\GerardGui\\Gerard.Tests\\bin\\Debug\\TestDropboxTfl",
         DestDir = "g:\\FileSync\\SyncProjects\\GerardGui\\Gerard.Tests\\bin\\Debug\\TestVesuviusTfl"
     };
     string whyNot;
     Assert.IsFalse(sut.IsTimeTodo(out whyNot));
     Console.WriteLine(whyNot);
 }
コード例 #2
0
 public void TestDropBoxCopyTflToVesuviusJob()
 {
     var sut = new DropBoxCopyTflToVesuviusJob( new FakeTimeKeeper(isPreSeason:false, isPeakTime:false))
     {
         SourceDir = "g:\\FileSync\\SyncProjects\\GerardGui\\Gerard.Tests\\bin\\Debug\\TestDropboxTfl",
         DestDir = "g:\\FileSync\\SyncProjects\\GerardGui\\Gerard.Tests\\bin\\Debug\\TestVesuviusTfl"
     };
     var outcome = sut.DoJob();
     Console.WriteLine("outcome={0}", outcome);
     Assert.IsFalse(string.IsNullOrEmpty(outcome));
 }