コード例 #1
0
        public void should_gatter_information_from_all_the_reporters()
        {
            var report1 = "This is the random report 1";
            var report2 = "This is the random report 2";

            _randomReporter1.Report().Returns(report1);
            _randomReporter2.Report().Returns(report2);

            var report = _statusReporter.Report();

            report.Should().Contain(report1);
            report.Should().Contain(report2);
        }
コード例 #2
0
 public string Report()
 {
     return(_statusReporter.Report());
 }