9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/tools/output_test_stream.hpp>
11 #include <boost/test/unit_test.hpp>
32 using boost::test_tools::output_test_stream;
33 namespace utf = boost::unit_test;
43 BOOST_AUTO_TEST_SUITE(Layers)
53 auto pRectangle = std::make_shared<const RectangleBounds>(
halfX,
halfY);
58 auto rBounds = std::make_shared<const RectangleBounds>(1., 1.);
60 const std::vector<std::shared_ptr<const Surface>> aSurfaces{
61 Surface::makeShared<PlaneSurface>(Transform3::Identity(),
rBounds),
62 Surface::makeShared<PlaneSurface>(Transform3::Identity(),
rBounds)};
65 size_t binsX(2), binsY(4);
68 auto pPlaneLayerFromSurfaces =
73 pTransform, pRectangle,
std::move(pSurfaceArray), thickness);
74 BOOST_CHECK_EQUAL(pPlaneLayerWithThickness->thickness(),
thickness);
76 std::unique_ptr<ApproachDescriptor> ad(
78 auto adPtr = ad.get();
79 auto pPlaneLayerWithApproachDescriptor =
82 BOOST_CHECK_EQUAL(pPlaneLayerWithApproachDescriptor->approachDescriptor(),
85 auto pPlaneLayerWithLayerType =
96 auto pRectangle = std::make_shared<const RectangleBounds>(
halfX,
halfY);
99 BOOST_CHECK_EQUAL(pPlaneLayer->surfaceRepresentation().name(),
103 BOOST_AUTO_TEST_SUITE_END()