From 5d8f799a1171f92054d4b45ba130cd7fdad0bd01 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 23 May 2025 14:04:27 +0200 Subject: app: prepare restructuring --- gui/ui/tests/participant_row.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 gui/ui/tests/participant_row.cpp (limited to 'gui/ui/tests/participant_row.cpp') diff --git a/gui/ui/tests/participant_row.cpp b/gui/ui/tests/participant_row.cpp new file mode 100644 index 0000000..20eaa5c --- /dev/null +++ b/gui/ui/tests/participant_row.cpp @@ -0,0 +1,30 @@ +#include "turns/ui/participant_row.hpp" + +#include "turns/core/disposition.hpp" +#include "turns/core/participant.hpp" + +#include + +#include + +#include + +#include + +namespace turns::ui::tests +{ + + TEST_CASE("A freshly constructed participant row") + { + SECTION("can be created without a participant") + { + REQUIRE(std::make_shared(Glib::RefPtr{})); + } + + SECTION("can be created with a participant") + { + REQUIRE(std::make_shared(core::Participant::create("Tazmyla Fireforge", 13, core::Disposition::Secret))); + } + } + +} // namespace turns::ui::widgets::tests \ No newline at end of file -- cgit v1.2.3