From 4d0a7d99ebf55ad2d0e583759699b8b4d77a7907 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 24 Jul 2024 13:23:55 +0200 Subject: app: move ui code to ui library --- ui/tests/widgets/participant_row.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ui/tests/widgets/participant_row.cpp (limited to 'ui/tests/widgets/participant_row.cpp') diff --git a/ui/tests/widgets/participant_row.cpp b/ui/tests/widgets/participant_row.cpp new file mode 100644 index 0000000..f2af510 --- /dev/null +++ b/ui/tests/widgets/participant_row.cpp @@ -0,0 +1,24 @@ +#include "turns/ui/widgets/participant_row.hpp" + +#include "turns/core/disposition.hpp" +#include "turns/core/participant.hpp" + +#include + +namespace turns::app::widgets::tests +{ + + TEST_CASE("A freshly constructed participant row") + { + SECTION("can be created without a participant") + { + REQUIRE(Gtk::make_managed(Glib::RefPtr{})); + } + + SECTION("can be created with a participant") + { + REQUIRE(Gtk::make_managed(core::participant::create("Tazmyla Fireforge", 13, core::disposition::secret))); + } + } + +} // namespace turns::app::widgets::tests \ No newline at end of file -- cgit v1.2.3