#include <gtest/gtest.h>
#include "../State_Test_Types.hpp"
TEST(state_strategy_base_test, publishes_through_virtual_interface) {
    State_Render_State_Reader render;
    State_Plain_Strategy strategy;
    State_Strategy_Base* base = &strategy;
    strategy.set<&State_Plain_Value::count>(7);
    base->publish();
    EXPECT_EQ(base->state_revision(), 1);
    EXPECT_EQ(render.read(strategy).count, 7);
}
