lullaby/tests/sort_order_test.cc
// Tests that a destroyed entity becomes unknown.
Tests that a destroyed entity becomes unknown.
Tests that a destroyed entity becomes unknown .
TEST(SortOrderTest, Destroy) {
  Registry registry;
  SortOrderManager manager(&registry);
  manager.SetOffset(Entity(1), 2);
  EXPECT_THAT(manager.GetOffset(Entity(1)), Eq(2));
  manager.Destroy(Entity(1));
  EXPECT_THAT(manager.GetOffset(Entity(1)), Eq(kUseDefaultOffset));
}
TEST ( SortOrderTest , Destroy ) { Registry registry ; SortOrderManager manager ( & registry ) ; manager . SetOffset ( Entity ( 1 ) , 2 ) ; EXPECT_THAT ( manager . GetOffset ( Entity ( 1 ) ) , Eq ( 2 ) ) ; manager . Destroy ( Entity ( 1 ) ) ; EXPECT_THAT ( manager . GetOffset ( Entity ( 1 ) ) , Eq ( kUseDefaultOffset ) ) ; }
Tests that a destroyed entity becomes unknown.
Tests that a destroyed entity becomes unknown .