resource_ut.cpp 410 B

12345678910111213
  1. #include <library/cpp/resource/resource.h>
  2. #include <library/cpp/testing/unittest/registar.h>
  3. Y_UNIT_TEST_SUITE(TestResource) {
  4. Y_UNIT_TEST(Test1) {
  5. UNIT_ASSERT_VALUES_EQUAL(NResource::Find("/x"), "na gorshke sidel korol\n");
  6. }
  7. Y_UNIT_TEST(TestHasFunc) {
  8. UNIT_ASSERT_VALUES_EQUAL(NResource::Has("/x"), true);
  9. UNIT_ASSERT_VALUES_EQUAL(NResource::Has("/y"), false);
  10. }
  11. }