public void ClassNodeWithFailureCallsClassFailed_WithExceptionType()
    {
        const string xml = @"<class time='1.234' name='Class.Name' total='10' passed='7' failed='2' skipped='1'><failure exception-type='Exception.Type'><message><![CDATA[Failure message]]></message><stack-trace><![CDATA[Stack trace]]></stack-trace></failure></class>";

        XmlLoggerAdapter.LogClassNode(CreateXmlNode(xml), logger.Object);

        logger.Verify(l => l.ClassFailed("Class.Name", "Exception.Type",
                                         "Failure message", "Stack trace"));
    }
    public void ClassNodeWithNoFailureYieldsNoCallback()
    {
        logger = new Mock <IRunnerLogger>(MockBehavior.Strict);
        const string xml = @"<class time='1.234' name='Class.Name' total='10' passed='7' failed='2' skipped='1' />";

        XmlLoggerAdapter.LogClassNode(CreateXmlNode(xml), logger.Object);

        logger.Verify();
    }