public void FromDelimitedString_WithIncorrectSegmentId_ThrowsArgumentException()
 {
     Assert.Throws <ArgumentException>(() =>
     {
         ISegment hl7Segment = new SghSegment();
         hl7Segment.FromDelimitedString("SGA|^~&|3|4|5|6");
     });
 }
        public void FromDelimitedString_WithAllProperties_ReturnsCorrectlyInitializedFields()
        {
            ISegment expected = new SghSegment
            {
                SetIdSgh         = 1,
                SegmentGroupName = "2"
            };

            ISegment actual = new SghSegment();

            actual.FromDelimitedString("SGH|1|2");

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