public void CleanUpEntityComponents() { DecentralandEntity entity = new DecentralandEntity(); IEntityComponent component = Substitute.For <IEntityComponent>(); entity.components.Add(CLASS_ID_COMPONENT.NONE, component); entity.Cleanup(); component.Received().Cleanup(); }