Example #1
0
 public void Should_Serialize_AllComponents()
 {
     var field = new CWE
     {
         Identifier = new ST { Value = "CWE.Identifier" },
         Text = new ST { Value = "CWE.Text" },
         NameofCodingSystem = new ID { Value = "CWE.NameofCodingSystem" },
         AlternateIdentifier = new ST { Value = "CWE.AlternateIdentifier" },
         AlternateText = new ST { Value = "CWE.AlternateText" },
         NameofAlternateCodingSystem = new ID { Value = "CWE.NameofAlternateCodingSystem" },
         CodingSystemVersionId = new ST { Value = "CWE.CodingSystemVersionId" },
         AlternateCodingSystemVersionId = new ST { Value = "CWE.AlternateCodingSystemVersionId" },
         OriginalText = new ST { Value = "CWE.OriginalText" }
     };
     Assert.AreEqual(All, field.ToString());
 }
Example #2
0
 public void Should_Serialize_LastComponent()
 {
     var field = new CWE
     {
         OriginalText = new ST { Value = "CWE.OriginalText" }
     };
     Assert.AreEqual(Last, field.ToString());
 }
Example #3
0
 public void Should_Serialize_FirstComponent()
 {
     var field = new CWE
     {
         Identifier = new ST { Value = "CWE.Identifier" }
     };
     Assert.AreEqual(First, field.ToString());
 }