public void Should_Serialize_FirstComponent() { var field = new HD { NamespaceId = new IS { Value = "HD.NamespaceId" } }; Assert.AreEqual(First, field.ToString()); }
public void Should_Serialize_LastComponent() { var field = new HD { UniversalIdType = new ID { Value = "HD.UniversalIdType" } }; Assert.AreEqual(Last, field.ToString()); }
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()); }