summaryrefslogtreecommitdiff
path: root/lib/tests/turnsmm/turn-order.cpp
blob: ad8306ba60201737ff0f70834477ec0e4fb069da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "turnsmm/turn-order.hpp"

#include <catch2/catch_test_macros.hpp>

#include <cstddef>

SCENARIO("Creating a turn order", "[lib][object][lifetime]")
{
  GIVEN("A turn order constructed using the default constructor")
  {
    auto instance = Turns::TurnOrder{};

    THEN("it's participant count is 0")
    {
      REQUIRE(instance.get_participant_count() == 0uz);
      REQUIRE(instance.get_property<std::size_t>("participant-count") == 0);
    }

    THEN("it's running state is false")
    {
      REQUIRE_FALSE(instance.get_running());
      REQUIRE_FALSE(instance.get_property<std::size_t>("running"));
    }
  }
}