⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 notequalexception.cpp

📁 开发源代码的CPU卡的COS源程序。
💻 CPP
字号:
#include <cppunit/NotEqualException.h>namespace CppUnit {NotEqualException::NotEqualException( std::string expected,                                      std::string actual,                                       SourceLine sourceLine ,                                      std::string additionalMessage ) :    Exception( "Expected: " + expected +                    ", but was: " + actual +                    "." + additionalMessage ,               sourceLine),    m_expected( expected ),    m_actual( actual ),    m_additionalMessage( additionalMessage ){}#ifdef CPPUNIT_ENABLE_SOURCELINE_DEPRECATED/*! * \deprecated Use other constructor instead. */NotEqualException::NotEqualException( std::string expected,                                      std::string actual,                                      long lineNumber,                                       std::string fileName ) :     Exception( "Expected: " + expected + ", but was: " + actual,               lineNumber,               fileName ),    m_expected( expected ),    m_actual( actual ){}#endifNotEqualException::NotEqualException( const NotEqualException &other ) :     Exception( other ),    m_expected( other.m_expected ),    m_actual( other.m_actual ),    m_additionalMessage( other.m_additionalMessage ){}NotEqualException::~NotEqualException() throw(){}NotEqualException &NotEqualException::operator =( const NotEqualException &other ){  Exception::operator =( other );  if ( &other != this )  {    m_expected = other.m_expected;    m_actual = other.m_actual;    m_additionalMessage = other.m_additionalMessage;  }  return *this;}Exception *NotEqualException::clone() const{  return new NotEqualException( *this );}bool NotEqualException::isInstanceOf( const Type &exceptionType ) const{  return exceptionType == type()  ||         Exception::isInstanceOf( exceptionType );}Exception::TypeNotEqualException::type(){  return Type( "CppUnit::NotEqualException" );}std::string NotEqualException::expectedValue() const{  return m_expected;}std::string NotEqualException::actualValue() const{  return m_actual;}std::string NotEqualException::additionalMessage() const{  return m_additionalMessage;}}  //  namespace CppUnit

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -