socket_addr_ut.cpp 357 B

123456789101112131415
  1. #include <library/cpp/testing/unittest/registar.h>
  2. #include "netaddr.h"
  3. #include "socket_addr.h"
  4. #include <util/string/cast.h>
  5. using namespace NBus;
  6. using namespace NBus::NPrivate;
  7. Y_UNIT_TEST_SUITE(TBusSocketAddr) {
  8. Y_UNIT_TEST(Simple) {
  9. UNIT_ASSERT_VALUES_EQUAL(TString("127.0.0.1:80"), ToString(TBusSocketAddr("127.0.0.1", 80)));
  10. }
  11. }