예제 #1
0
 public void FromDelimitedString_WithIncorrectSegmentId_ThrowsArgumentException()
 {
     Assert.Throws <ArgumentException>(() =>
     {
         ISegment hl7Segment = new QrfSegment();
         hl7Segment.FromDelimitedString("QRA|^~&|3|4|5|6");
     });
 }
예제 #2
0
        public void FromDelimitedString_WithAllProperties_ReturnsCorrectlyInitializedFields()
        {
            ISegment expected = new QrfSegment
            {
                SegmentString = "1"
            };

            ISegment actual = new QrfSegment();

            actual.FromDelimitedString("QRF|1");

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