9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/tools/output_test_stream.hpp>
11 #include <boost/test/unit_test.hpp>
18 #include "../Surfaces/SurfaceStub.hpp"
21 using boost::test_tools::output_test_stream;
22 namespace utf = boost::unit_test;
32 BOOST_AUTO_TEST_SUITE(Layers)
37 std::vector<std::shared_ptr<const Surface>> someSurfaces{
38 Surface::makeShared<SurfaceStub>(), Surface::makeShared<SurfaceStub>()};
43 std::vector<std::shared_ptr<const Layer>> sharedLayers{
44 std::make_shared<LayerStub>(
nullptr),
45 std::make_shared<LayerStub>(
nullptr)};
47 {sharedLayers.at(0)->surfaceRepresentation().getSharedPtr(),
48 sharedLayers.at(1)->surfaceRepresentation().getSharedPtr()}));
53 *utf::expected_failures(1)) {
62 std::vector<std::shared_ptr<const Surface>> someSurfaces{
63 Surface::makeShared<SurfaceStub>(), Surface::makeShared<SurfaceStub>()};
67 BOOST_CHECK_NO_THROW(approachDescriptor.
registerLayer(aLayer));
71 double expectedIntersection = 20.0;
73 expectedIntersection, 1
e-6);
78 for (
size_t i = 0; i < someSurfaces.size(); i++) {
80 someSurfaces.at(i).get());
84 BOOST_AUTO_TEST_SUITE_END()