public void FromDelimitedString_WithIncorrectSegmentId_ThrowsArgumentException()
 {
     Assert.Throws <ArgumentException>(() =>
     {
         ISegment hl7Segment = new MsaSegment();
         hl7Segment.FromDelimitedString("MAA|^~&|3|4|5|6");
     });
 }
        public void FromDelimitedString_WithAllProperties_ReturnsCorrectlyInitializedFields()
        {
            ISegment expected = new MsaSegment
            {
                AcknowledgmentCode        = "1",
                MessageControlId          = "2",
                TextMessage               = "3",
                ExpectedSequenceNumber    = 4,
                DelayedAcknowledgmentType = "5",
                ErrorCondition            = "6",
                MessageWaitingNumber      = 7,
                MessageWaitingPriority    = "8"
            };

            ISegment actual = new MsaSegment();

            actual.FromDelimitedString("MSA|1|2|3|4|5|6|7|8");

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