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 ); }
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 ); }
public void TestUnitReportsJob() { var sut = new UnitReportsJob(new FakeHistorian()); var outcome = sut.DoJob(); Assert.IsFalse( string.IsNullOrEmpty( outcome ) ); }