コード例 #1
0
 public void TestTimetoDoStatGridJob()
 {
     var sut = new StatGridJob(new FakeTimeKeeper());
      string whyNot;
      Assert.IsFalse(sut.IsTimeTodo(out whyNot));
      Console.WriteLine(whyNot);
 }
コード例 #2
0
 public void TestStatGridJob()
 {
     var sut = new StatGridJob(new TimeKeeper(null));
      sut.DoJob();
      var run = sut.Report.LastRun;
      Assert.IsTrue(run.Date.Equals(DateTime.Now.Date));
 }