public void ToDelimitedString_WithAllProperties_ReturnsCorrectlySequencedFields()
        {
            IType hl7Type = new PractitionerLicenseOrOtherIdNumber
            {
                IdNumber       = "1",
                TypeOfIdNumber = new CodedWithExceptions
                {
                    Identifier = "2"
                },
                StateOtherQualifyingInformation = "3",
                ExpirationDate = new DateTime(2020, 4, 4)
            };

            string expected = "1^2^3^20200404";
            string actual   = hl7Type.ToDelimitedString();

            Assert.Equal(expected, actual);
        }
        public void FromDelimitedString_WithAllProperties_ReturnsCorrectlyInitializedFields()
        {
            IType expected = new PractitionerLicenseOrOtherIdNumber
            {
                IdNumber       = "1",
                TypeOfIdNumber = new CodedWithExceptions
                {
                    IsSubcomponent = true,
                    Identifier     = "2"
                },
                StateOtherQualifyingInformation = "3",
                ExpirationDate = new DateTime(2020, 4, 4)
            };

            IType actual = new PractitionerLicenseOrOtherIdNumber();

            actual.FromDelimitedString("1^2^3^20200404");

            expected.Should().BeEquivalentTo(actual);
        }