コード例 #1
0
 public void TestTimetoDoUnitReportsJob()
 {
     //  Fake historian garantees job will run always
      var sut = new UnitReportsJob( new FakeHistorian() );
      string whyNot;
      Assert.IsTrue( sut.IsTimeTodo( out whyNot ) );
      Console.WriteLine( whyNot );
 }
コード例 #2
0
 public void TestDoUnitReportsJob()
 {
     //  Fake historian garantees job will run always
      var sut = new UnitReportsJob( new FakeHistorian() );
      var r = sut.DoJob();
      Assert.IsTrue( r.Length > 0 );
      Console.WriteLine( r );
      Console.WriteLine( " Runtime : {0}", sut.Report.RunTime );
 }
コード例 #3
0
 public void TestUnitReportsJob()
 {
     var sut = new UnitReportsJob(new FakeHistorian());
      var outcome = sut.DoJob();
      Assert.IsFalse( string.IsNullOrEmpty( outcome ) );
 }