paysages3d/src/tests/OpenGLVegetation_Test.cpp

20 lines
473 B
C++
Raw Normal View History

#include "BaseTestCase.h"
#include "OpenGLVegetation.h"
#include "Scenery.h"
#include "VegetationDefinition.h"
#include "VegetationLayerDefinition.h"
#include "OpenGLRenderer.h"
TEST(OpenGLVegetation, updateLayers) {
Scenery scenery;
OpenGLRenderer renderer(&scenery);
OpenGLVegetation glvegetation(&renderer);
EXPECT_EQ(0, glvegetation.getLayerCount());
scenery.getVegetation()->addLayer("test");
EXPECT_EQ(1, glvegetation.getLayerCount());
}