Some clean-up and a little more JUnit implementation

This commit is contained in:
Phil Nash
2010-12-10 08:18:06 +00:00
parent 0ab4432025
commit a35e4b5670
2 changed files with 23 additions and 35 deletions

View File

@@ -108,6 +108,16 @@ namespace Catch
return *this;
}
template<typename T>
XmlWriter& writeAttribute( const std::string& name, const T& attribute )
{
if( !name.empty() )
{
m_os << " " << name << "=\"" << attribute << "\"";
}
return *this;
}
XmlWriter& writeText( const std::string& text )
{
if( !text.empty() )