public void Should_Serialize_AllComponents() { var field = new CE { Identifier = new ST {Value = "CE.Identifier"}, Text = new ST {Value = "CE.Text"}, NameofCodingSystem = new ID { Value = "CE.NameofCodingSystem" }, AlternateIdentifier1 = new ST { Value = "CE.AlternateIdentifier1" }, AlternateText1 = new ST { Value = "CE.AlternateText1" }, NameofAlternateCodingSystem1 = new ID { Value = "CE.NameofAlternateCodingSystem1" }, AlternateIdentifier2 = new ST { Value = "CE.AlternateIdentifier2" }, AlternateText2 = new ST { Value = "CE.AlternateText2" }, NameofAlternateCodingSystem2 = new ID { Value = "CE.NameofAlternateCodingSystem2" } }; Assert.AreEqual(All, field.ToString()); }
public void Should_Serialize_LastComponent() { var field = new CE { NameofAlternateCodingSystem2 = new ID { Value = "CE.NameofAlternateCodingSystem2" } }; Assert.AreEqual(Last, field.ToString()); }
public void Should_Serialize_FirstComponent() { var field = new CE { Identifier = new ST { Value = "CE.Identifier" } }; Assert.AreEqual(First, field.ToString()); }