Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor some EntityTest boilerplate
Add a new helper class TestEntity to construct an entity by classname and add it to the map (to enable undo). Since this is a struct with public members, we can use C++17 structured bindings to initialise local variables in tests as well as accessing members in the struct directly.
- Loading branch information
Matthew Mott
committed
Nov 26, 2021
1 parent
58d7ce5
commit 6973434
Showing
1 changed file
with
39 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters