Click here to Skip to main content
15,896,118 members
Articles / Mobile Apps

Unit Testing Framework for eVC++ Applications

Rate me:
Please Sign up or sign in to vote.
4.63/5 (13 votes)
17 Oct 2004CPOL6 min read 85.4K   246   28  
A unit testing framework for eVC++ applications, and its usage.
// Complex.h: interface for the CComplex class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_COMPLEX_H__6C855BE8_8258_4372_BCDE_B4B06F660FF1__INCLUDED_)
#define AFX_COMPLEX_H__6C855BE8_8258_4372_BCDE_B4B06F660FF1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CComplex  
{
public:
	CComplex();
	CComplex(double dbReal, double dbImaginary);
	virtual ~CComplex();
	bool operator == (CComplex& toCompare);
	CComplex operator + (CComplex& toAdd);
	CComplex operator = (CComplex& toStore);
	double GetReal();
	double GetImaginary();

private:
	double		m_dbReal;
	double		m_dbImaginary;

};

#endif // !defined(AFX_COMPLEX_H__6C855BE8_8258_4372_BCDE_B4B06F660FF1__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
India India
A person who like to know about new things, peolple and make frineds. I strarted programming in 2000 with fortran but my first love in programming is C++. Also programmed in VB, MFC and for Windows CE.

Graduated in Physics and done masteres in Computer application. Physics and astronomy are my area of intrest. Karate is also one of my hobbies, BTW I am a Black Belt in Karate.

Comments and Discussions