public void ToDelimitedString_WithAllProperties_ReturnsCorrectlySequencedFields() { IType hl7Type = new DateAndInstitutionName { Date = new DateTime(2020, 1, 1), InstitutionName = new CodedWithExceptions { Identifier = "2" } }; string expected = "20200101^2"; string actual = hl7Type.ToDelimitedString(); Assert.Equal(expected, actual); }