public void FromDelimitedString_WithIncorrectSegmentId_ThrowsArgumentException()
 {
     Assert.Throws <ArgumentException>(() =>
     {
         ISegment hl7Segment = new SftSegment();
         hl7Segment.FromDelimitedString("SFA|^~&|3|4|5|6");
     });
 }
        public void FromDelimitedString_WithAllProperties_ReturnsCorrectlyInitializedFields()
        {
            ISegment expected = new SftSegment
            {
                SoftwareVendorOrganization = new ExtendedCompositeNameAndIdNumberForOrganizations
                {
                    OrganizationName = "1"
                },
                SoftwareCertifiedVersionOrReleaseNumber = "2",
                SoftwareProductName        = "3",
                SoftwareBinaryId           = "4",
                SoftwareProductInformation = new Text
                {
                    Value = "5"
                },
                SoftwareInstallDate = new DateTime(2020, 6, 6, 0, 0, 6)
            };

            ISegment actual = new SftSegment();

            actual.FromDelimitedString("SFT|1|2|3|4|5|20200606000006");

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