TS_ASSERT_THROWS_EQUALS((DAP::Interface{"invalid_address",1234,*g_ScriptContext}),constDAP::DapInterfaceException&e,e.what(),fmt::format("Failed to bind and listen on port 1234"));
conststd::stringaddress{"127.0.0.1"};
constintport{1234};
// Test no tools/dap/ directory
TS_ASSERT_THROWS_EQUALS((DAP::Interface{address,port,*g_ScriptContext}),constDAP::DapInterfaceNoJSDebuggerException&e,e.what(),"DAP entry script not found at tools/dap/entry.js");
TS_ASSERT_THROWS_EQUALS((DAP::Interface{address,port,*g_ScriptContext}),constDAP::DapInterfaceException&e,e.what(),fmt::format("Failed to bind and listen on port {}",port));