资 源 简 介
//: TestSuite:Suite.cpp {0}
#include "Suite.h"
#include
#include
#include
using namespace std;
using namespace TestSuite;
void Suite::addtest(Test* t) throw(TestSuiteError)
{
// verify test is valid and has a stream:
if (t == 0)
{
throw TestSuiteError("Null test int Suite::addtest");
}
else if (osptr != NULL && !t->get_stream())
{
t->set_stream(osptr);
}
tests.push_back(t);
t->reset();
}
void Suite::addsuite(const Suite& s)
{
for (size_t i = 0; i < s.tests.size(); ++i)
&nb