public void FromDelimitedString_WithIncorrectSegmentId_ThrowsArgumentException()
 {
     Assert.Throws <ArgumentException>(() =>
     {
         ISegment hl7Segment = new SidSegment();
         hl7Segment.FromDelimitedString("SIA|^~&|3|4|5|6");
     });
 }
        public void FromDelimitedString_WithAllProperties_ReturnsCorrectlyInitializedFields()
        {
            ISegment expected = new SidSegment
            {
                ApplicationMethodIdentifier = new CodedWithExceptions
                {
                    Identifier = "1"
                },
                SubstanceLotNumber              = "2",
                SubstanceContainerIdentifier    = "3",
                SubstanceManufacturerIdentifier = new CodedWithExceptions
                {
                    Identifier = "4"
                }
            };

            ISegment actual = new SidSegment();

            actual.FromDelimitedString("SID|1|2|3|4");

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