diff --git a/test/properties/_properties.cxx b/test/properties/_properties.cxx index 54c8315d..1323465c 100644 --- a/test/properties/_properties.cxx +++ b/test/properties/_properties.cxx @@ -70,6 +70,9 @@ TEST(ProgOptions, SetAndGet) set_and_get>(o, "_vector", { 33.22, 33.23, 33.24 }); set_and_get>(o, "_vector", { 333.222, 333.223, 333.224 }); set_and_get>(o, "_vector", { boost::filesystem::path("C:\\Windows"), boost::filesystem::path("C:\\Windows\\System32") }); + + ASSERT_THROW(o.ParseAll({"cmd", "--unregistered", "option"}, false), boost::program_options::unknown_option); + ASSERT_NO_THROW(o.ParseAll({"cmd", "--unregistered", "option"}, true)); } template