scene = new Athena.Entities.Scene('test');

entity1 = scene.create("Entity1");

CHECK_EQUAL(0, entity1.nbChildren);

entity2 = scene.create("Entity2");

CHECK(entity2.parent === undefined);


entity1.addChild(entity2);

CHECK_EQUAL(1, entity1.nbChildren);
CHECK(entity2.parent !== undefined);
CHECK_EQUAL('Entity1', entity2.parent.name);


entity1.removeChild(entity2);

CHECK_EQUAL(0, entity1.nbChildren);
CHECK(entity2.parent === undefined);


entity1.addChild(entity2);

entity1.destroyAllChildren();

CHECK_EQUAL(0, entity1.nbChildren);
CHECK(entity2.parent === undefined);

scene = new Athena.Entities.Scene('test');

entity1 = scene.create("Entity1");

CHECK_EQUAL(0, entity1.nbChildren);

entity2 = scene.create("Entity2");

CHECK(entity2.parent === undefined);


entity1.addChild(entity2);

CHECK_EQUAL(1, entity1.nbChildren);
CHECK(entity2.parent !== undefined);
CHECK_EQUAL('Entity1', entity2.parent.name);


entity1.removeChild(entity2);

CHECK_EQUAL(0, entity1.nbChildren);
CHECK(entity2.parent === undefined);


entity1.addChild(entity2);

entity1.destroyAllChildren();

CHECK_EQUAL(0, entity1.nbChildren);

Remove an incorrectly copy/pasted line
[Unittests] Remove an incorrectly copy/pasted line
