Files
jtest/include/jtest/Unit.hpp
Redacted 76a384b892 Fix for latest jlog
Also remove having to include event directly as it gets passed up from jlog.
2024-10-10 12:08:25 -04:00

26 lines
538 B
C++

#pragma once
#include <Event.h>
#include <jtest/Test.hpp>
#include <jtest/UnitLogger.hpp>
namespace jtest {
class Unit : public BasicEvent<Test>, protected UnitLogger {
using event_base = BasicEvent<Test>;
public:
Unit(const std::string& name);
public:
std::string Name();
void Invoke() override;
int TestCount() { return this->listeners.size();}
void RunAll()
{
Invoke();
}
void RunNext();
private:
std::string name;
};
}