public void FromDelimitedString_WithIncorrectSegmentId_ThrowsArgumentException() { Assert.Throws <ArgumentException>(() => { ISegment hl7Segment = new DspSegment(); hl7Segment.FromDelimitedString("DSA|^~&|3|4|5|6"); }); }
public void FromDelimitedString_WithAllProperties_ReturnsCorrectlyInitializedFields() { ISegment expected = new DspSegment { SetIdDsp = 1, DisplayLevel = 2, DataLine = new Text { Value = "3" }, LogicalBreakPoint = "4", ResultId = new Text { Value = "5" } }; ISegment actual = new DspSegment(); actual.FromDelimitedString("DSP|1|2|3|4|5"); expected.Should().BeEquivalentTo(actual); }