Exemplo n.º 1
0
        public void ThatNormalTestOutputIsOutput()
        {
            var sut = new NUnitEventListener(recorder, converter, dumpxml);

            sut.OnTestEvent(TestoutputProgress);
            sut.OnTestEvent(TestFinish);

            recorder.Received().SendMessage(Arg.Any <TestMessageLevel>(), Arg.Is <string>(x => x.StartsWith("Whatever")));
            converter.Received().GetVSTestResults(Arg.Any <XmlElement>(), Arg.Is <ICollection <XmlNode> >(x => x.Count == 1));
        }
        public void ThatNormalTestOutputIsOutput()
        {
            var sut = new NUnitEventListener(recorder, converter, executor);

            sut.OnTestEvent(TestOutputProgress);
            sut.OnTestEvent(TestFinish);

            recorder.Received().SendMessage(Arg.Any <TestMessageLevel>(), Arg.Is <string>(x => x.StartsWith("Whatever")));
            converter.Received().GetVsTestResults(Arg.Any <NUnitTestEventTestCase>(), Arg.Is <ICollection <INUnitTestEventTestOutput> >(x => x.Count == 1));
        }