public void FromDelimitedString_WithAllProperties_ReturnsCorrectlyInitializedFields() { ISegment expected = new PyeSegment { SetIdPye = 1, PayeeType = new CodedWithExceptions { Identifier = "2" }, PayeeRelationshipToInvoicePatient = new CodedWithExceptions { Identifier = "3" }, PayeeIdentificationList = new ExtendedCompositeNameAndIdNumberForOrganizations { OrganizationName = "4" }, PayeePersonName = new ExtendedPersonName { FamilyName = new FamilyName { IsSubcomponent = true, Surname = "5" } }, PayeeAddress = new ExtendedAddress { StreetAddress = new StreetAddress { IsSubcomponent = true, StreetOrMailingAddress = "6" } }, PaymentMethod = new CodedWithExceptions { Identifier = "7" } }; PyeSegment actual = new(); actual.FromDelimitedString("PYE|1|2|3|4|5|6|7"); expected.Should().BeEquivalentTo(actual); }