public void RunReport_returns_report()
        {
            var session = MockRepository.GenerateStub<IQBSessionInternal>();
            session.Expect(x => x.ProcessRequest(null))
                .IgnoreArguments()
                .Return(ReportXML());

            var customReport = new CustomDetailReport(session);
            var report = customReport.RunReport();
            Assert.AreEqual("Main Report", report.Title);
        }
Beispiel #2
0
        public void RunReport_returns_report()
        {
            var session = MockRepository.GenerateStub <IQBSessionInternal>();

            session.Expect(x => x.ProcessRequest(null))
            .IgnoreArguments()
            .Return(ReportXML());

            var customReport = new CustomDetailReport(session);
            var report       = customReport.RunReport();

            Assert.AreEqual("Main Report", report.Title);
        }