name: Deprecation of Name::set methods, move constructors to .cpp, and documentation update

Change-Id: Icc68cad2854130fbf99c7af3378516dce0585279
Refs: #2505
diff --git a/tests/unit-tests/name.t.cpp b/tests/unit-tests/name.t.cpp
index c9030c0..6271c7a 100644
--- a/tests/unit-tests/name.t.cpp
+++ b/tests/unit-tests/name.t.cpp
@@ -164,7 +164,7 @@
   BOOST_CHECK(nameEncoded == nameBlock);
 
   Name name2;
-  BOOST_REQUIRE_NO_THROW(name2.set(nameUri));
+  BOOST_REQUIRE_NO_THROW(name2 = std::move(Name(nameUri)));
   Block name2Encoded = name2.wireEncode();
   BOOST_CHECK(name2Encoded == nameBlock);
 }
diff --git a/tests/unit-tests/security/identity-fixture.cpp b/tests/unit-tests/security/identity-fixture.cpp
index de67085..36f9c0b 100644
--- a/tests/unit-tests/security/identity-fixture.cpp
+++ b/tests/unit-tests/security/identity-fixture.cpp
@@ -55,7 +55,7 @@
       m_hasOldDefaultIdentity = false;
     }
 
-    m_newIdentity.set("/ndn-cxx-test-identity");
+    m_newIdentity = "/ndn-cxx-test-identity";
     m_newIdentity.appendVersion();
 
     // create the new identity and self-signed certificate