MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / expectNodeSelectionStatus

Function expectNodeSelectionStatus

test/Selection.cpp:33–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31using SelectionTest = RadiantTest;
32
33void expectNodeSelectionStatus(const std::vector<scene::INodePtr>& shouldBeSelected,
34 const std::vector<scene::INodePtr>& shouldBeUnselected)
35{
36 for (const auto& node : shouldBeSelected)
37 {
38 EXPECT_TRUE(Node_isSelected(node)) << "Node " << node->name() << " should be selected";
39 }
40
41 for (const auto& node : shouldBeUnselected)
42 {
43 EXPECT_FALSE(Node_isSelected(node)) << "Node " << node->name() << " should be unselected";
44 }
45}
46
47TEST_F(SelectionTest, DefaultSelectionMode)
48{

Callers 1

TEST_FFunction · 0.85

Calls 2

Node_isSelectedFunction · 0.85
nameMethod · 0.45

Tested by

no test coverage detected