diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2024-07-15 22:26:12 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2024-07-15 22:26:12 +0200 |
| commit | 3262b3a337759439f3049b9299be12baf8420750 (patch) | |
| tree | 53d2e71a390662894bca3eb5c9345a59f08fc806 /domain/tests/participant.cpp | |
| parent | 7758fbc7522b39bad768abfa728b37c97007ffb6 (diff) | |
| download | turns-3262b3a337759439f3049b9299be12baf8420750.tar.xz turns-3262b3a337759439f3049b9299be12baf8420750.zip | |
turns: add more tests
Diffstat (limited to 'domain/tests/participant.cpp')
| -rw-r--r-- | domain/tests/participant.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/domain/tests/participant.cpp b/domain/tests/participant.cpp index e9e7c46..268b395 100644 --- a/domain/tests/participant.cpp +++ b/domain/tests/participant.cpp @@ -22,24 +22,24 @@ namespace turns::domain::tests SECTION("the name can be read") { - REQUIRE(instance.property_name() == constructed_name); + REQUIRE(instance.get_name() == constructed_name); } SECTION("the name can be changed") { - instance.property_name() = "replaced"; - REQUIRE(instance.property_name() == "replaced"); + instance.set_name("replaced"); + REQUIRE(instance.get_name() == "replaced"); } SECTION("the priority can be read") { - REQUIRE(instance.property_priority() == constructed_priority); + REQUIRE(instance.get_priority() == constructed_priority); } SECTION("the priority can be changed") { - instance.property_priority() = 8; - REQUIRE(instance.property_priority() == 8); + instance.set_priority(8); + REQUIRE(instance.get_priority() == 8); } SECTION("can be compared with another participant") |
