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()); }
public void Should_Serialize_LastComponent() { var field = new CWE { OriginalText = new ST { Value = "CWE.OriginalText" } }; Assert.AreEqual(Last, field.ToString()); }
public void Should_Serialize_FirstComponent() { var field = new CWE { Identifier = new ST { Value = "CWE.Identifier" } }; Assert.AreEqual(First, field.ToString()); }