public void FromDelimitedString_WithIncorrectSegmentId_ThrowsArgumentException() { Assert.Throws <ArgumentException>(() => { ISegment hl7Segment = new AddSegment(); hl7Segment.FromDelimitedString("ADA|^~&|3|4|5|6"); }); }
public void FromDelimitedString_WithAllProperties_ReturnsCorrectlyInitializedFields() { ISegment expected = new AddSegment { AddendumContinuationPointer = "1" }; ISegment actual = new AddSegment(); actual.FromDelimitedString("ADD|1"); expected.Should().BeEquivalentTo(actual); }