Exemple #1
0
 public void Should_Serialize_FirstComponent()
 {
     var field = new HD
     {
         NamespaceId = new IS { Value = "HD.NamespaceId" }
     };
     Assert.AreEqual(First, field.ToString());
 }
Exemple #2
0
 public void Should_Serialize_LastComponent()
 {
     var field = new HD
     {
         UniversalIdType = new ID { Value = "HD.UniversalIdType" }
     };
     Assert.AreEqual(Last, field.ToString());
 }
Exemple #3
0
 public void Should_Serialize_AllComponents()
 {
     var field = new HD
     {
         NamespaceId = new IS { Value = "HD.NamespaceId" },
         UniversalId = new ST { Value = "HD.UniversalId" },
         UniversalIdType = new ID { Value = "HD.UniversalIdType" }
     };
     Assert.AreEqual(All, field.ToString());
 }